From: Dirk Hohndel Date: Tue, 6 Apr 2010 22:36:25 +0000 (-0700) Subject: fix obvious cut and paste error X-Git-Tag: 0.2~99 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=4563f669ca672489017b5de319d447bb1f6ee26f fix obvious cut and paste error the wrong variable is checked for success of an allocation Signed-off-by: Dirk Hohndel --- 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);