From 6456ff14e8f152b8517397a634aa31fe4c8b694e Mon Sep 17 00:00:00 2001 From: Olaf Wintermann Date: Mon, 12 May 2025 20:39:06 +0200 Subject: [PATCH] fix incorrect error handling in qthr_new_notebook --- application/store.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } } -- 2.43.5