From: Olaf Wintermann Date: Tue, 29 Apr 2025 17:17:06 +0000 (+0200) Subject: fix missing error initialization in note_store_save_attachment_async X-Git-Url: https://uap-core.de/gitweb/?a=commitdiff_plain;h=7d459a154e70ab9f2edf628456ee52e5c408616f;p=note.git fix missing error initialization in note_store_save_attachment_async --- 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); }