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);
}
notmuch_query_destroy (thread_id_query);
-
for (messages = notmuch_query_search_messages (matched_query);
notmuch_messages_valid (messages);
notmuch_messages_move_to_next (messages))