From: Olaf Wintermann Date: Mon, 12 May 2025 18:39:06 +0000 (+0200) Subject: fix incorrect error handling in qthr_new_notebook X-Git-Url: https://uap-core.de/gitweb/?a=commitdiff_plain;h=6456ff14e8f152b8517397a634aa31fe4c8b694e;p=note.git fix incorrect error handling in qthr_new_notebook --- diff --git a/application/store.c b/application/store.c index 3841288..5a963b1 100644 --- a/application/store.c +++ b/application/store.c @@ -785,7 +785,7 @@ static int qthr_new_notebook(CreateNotebookJob *job) { } else { DBUResult *result = dbuQueryGetResult(q); int64_t new_resource_id; - if(!dbuResultAsInt64(result, &job->resource->resource_id)) { + if(dbuResultAsInt64(result, &job->resource->resource_id)) { job->error = 2; } }