]> uap-core.de Git - note.git/commitdiff
fix incorrect error handling in qthr_new_notebook
authorOlaf Wintermann <olaf.wintermann@gmail.com>
Mon, 12 May 2025 18:39:06 +0000 (20:39 +0200)
committerOlaf Wintermann <olaf.wintermann@gmail.com>
Mon, 12 May 2025 18:39:06 +0000 (20:39 +0200)
application/store.c

index 38412885502d3a7e0263da9ed5f558c8a616f138..5a963b1ef90c542ee2071b96aeae0a5270f6b03c 100644 (file)
@@ -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;
         }
     }