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.
This commit is contained in:
Carl Worth 2009-11-09 13:43:59 -08:00
parent 436b8a2fda
commit 3942933962

View file

@ -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;