]> git.notmuchmail.org Git - notmuch/blobdiff - lib/thread.cc
Fix typo in notmuch.h documentation regarding database open modes
[notmuch] / 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);