the wrong variable is checked for success of an allocation
Signed-off-by: Dirk Hohndel <hohndel@infradead.org>
return NULL;
matched_query = notmuch_query_create (notmuch, matched_query_string);
return NULL;
matched_query = notmuch_query_create (notmuch, matched_query_string);
- if (unlikely (thread_id_query == NULL))
+ if (unlikely (matched_query == NULL))
return NULL;
thread = talloc (ctx, notmuch_thread_t);
return NULL;
thread = talloc (ctx, notmuch_thread_t);