From 7d459a154e70ab9f2edf628456ee52e5c408616f Mon Sep 17 00:00:00 2001 From: Olaf Wintermann Date: Tue, 29 Apr 2025 19:17:06 +0200 Subject: [PATCH] fix missing error initialization in note_store_save_attachment_async --- application/store.c | 1 + 1 file changed, 1 insertion(+) diff --git a/application/store.c b/application/store.c index 71f968f..0c55f2a 100644 --- a/application/store.c +++ b/application/store.c @@ -686,6 +686,7 @@ void note_store_save_attachment_async(UiObject *obj, Attachment *attachment, exe job->name = strdup(attachment->name); job->content = attachment->bin_content.ptr ? cx_strdup(cx_strcast(attachment->bin_content)) : (cxmutstr){NULL, 0}; job->resultcb = resultcb; + job->error = 0; job->userdata = userdata; ui_threadpool_job(queue, obj, (ui_threadfunc)qthr_save_attachment, job, (ui_callback)uithr_save_attachment_finished, job); } -- 2.43.5