X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=lib%2Fthread.cc;h=48c070e6ce2261eff809c44ad1d490246474203a;hb=6847960a585b9816907b313e54e7572e0fdfdc85;hp=1c8b39d208bc89a780675da6f27f98de0b168b97;hpb=e2dd4ac00b9979de34bd517fa57de56260d38755;p=notmuch diff --git a/lib/thread.cc b/lib/thread.cc index 1c8b39d2..48c070e6 100644 --- a/lib/thread.cc +++ b/lib/thread.cc @@ -236,7 +236,7 @@ _notmuch_thread_create (void *ctx, 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);