aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/thread.cc
diff options
context:
space:
mode:
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);