aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/thread.cc
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <hohndel@infradead.org>2010-04-06 15:36:25 -0700
committerGravatar Carl Worth <cworth@cworth.org>2010-04-06 18:55:56 -0700
commit4563f669ca672489017b5de319d447bb1f6ee26f (patch)
tree0ea7b6894b9d1d654ec5b19c7a6bb1b45127a41f /lib/thread.cc
parent03693ce413b94fcfc82baf45236cd2e72d3ed64e (diff)
fix obvious cut and paste error
the wrong variable is checked for success of an allocation Signed-off-by: Dirk Hohndel <hohndel@infradead.org>
Diffstat (limited to 'lib/thread.cc')
-rw-r--r--lib/thread.cc2
1 files changed, 1 insertions, 1 deletions
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);