aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Carl Worth <cworth@cworth.org>2009-11-09 13:43:59 -0800
committerGravatar Carl Worth <cworth@cworth.org>2009-11-09 13:43:59 -0800
commit39429339624f8d29db8f523d52a81c70001ebebe (patch)
treed8123e6f89392294338f07e0912f5c594526dc0f
parent436b8a2fda3f0ba894cfd5f5332557cdff1663b0 (diff)
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.
-rw-r--r--database.cc2
1 files changed, 1 insertions, 1 deletions
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;