projects
/
notmuch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
436b8a2
)
add_message: Fix crash for file recognized as not email.
author
Carl Worth
<cworth@cworth.org>
Mon, 9 Nov 2009 21:43:59 +0000
(13:43 -0800)
committer
Carl Worth
<cworth@cworth.org>
Mon, 9 Nov 2009 21:43:59 +0000
(13:43 -0800)
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
patch
|
blob
|
history
diff --git
a/database.cc
b/database.cc
index 97043e99b7230ab6ccf4d5f587333278522aeba3..4524016b37aecb1d0ffbacfbe72d4b5c8b03b94d 100644
(file)
--- 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;