From 39429339624f8d29db8f523d52a81c70001ebebe Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Mon, 9 Nov 2009 13:43:59 -0800 Subject: [PATCH] add_message: Fix crash for file recognized as not email. This crash was introduced sometime recently, as previously things worked fine when notmuch detected that a file is not an email. We're definitely overdue for that test suite. --- database.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database.cc b/database.cc index 97043e99..4524016b 100644 --- a/database.cc +++ b/database.cc @@ -860,7 +860,7 @@ notmuch_database_add_message (notmuch_database_t *notmuch, notmuch_message_t **message_ret) { notmuch_message_file_t *message_file; - notmuch_message_t *message; + notmuch_message_t *message = NULL; notmuch_status_t ret = NOTMUCH_STATUS_SUCCESS; notmuch_private_status_t private_status; -- 2.26.2