fix obvious cut and paste error
authorDirk Hohndel <hohndel@infradead.org>
Tue, 6 Apr 2010 22:36:25 +0000 (15:36 -0700)
committerCarl Worth <cworth@cworth.org>
Wed, 7 Apr 2010 01:55:56 +0000 (18:55 -0700)
the wrong variable is checked for success of an allocation

Signed-off-by: Dirk Hohndel <hohndel@infradead.org>
lib/thread.cc

index 1c8b39d208bc89a780675da6f27f98de0b168b97..48c070e6ce2261eff809c44ad1d490246474203a 100644 (file)
@@ -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);