the wrong variable is checked for success of an allocation Signed-off-by: Dirk Hohndel <hohndel at infradead.org> --- 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); -- 1.6.6.1 -- Dirk Hohndel Intel Open Source Technology Center