From 4563f669ca672489017b5de319d447bb1f6ee26f Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Tue, 6 Apr 2010 15:36:25 -0700 Subject: [PATCH 1/1] fix obvious cut and paste error the wrong variable is checked for success of an allocation Signed-off-by: Dirk Hohndel --- lib/thread.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.43.0