fix obvious cut and paste error

the wrong variable is checked for success of an allocation

Signed-off-by: Dirk Hohndel <hohndel@infradead.org>
This commit is contained in:
Dirk Hohndel 2010-04-06 15:36:25 -07:00 committed by Carl Worth
parent 03693ce413
commit 4563f669ca

View 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);