diff options
author | Dirk Hohndel <hohndel@infradead.org> | 2010-04-06 15:36:25 -0700 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2010-04-06 18:55:56 -0700 |
commit | 4563f669ca672489017b5de319d447bb1f6ee26f (patch) | |
tree | 0ea7b6894b9d1d654ec5b19c7a6bb1b45127a41f | |
parent | 03693ce413b94fcfc82baf45236cd2e72d3ed64e (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>
-rw-r--r-- | lib/thread.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/thread.cc b/lib/thread.cc index 1c8b39d..48c070e 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); |