]> git.notmuchmail.org Git - notmuch/commit
notmuch reply: Handle notmuch_message_get_header returning NULL.
authorCarl Worth <cworth@cworth.org>
Sat, 24 Apr 2010 13:33:32 +0000 (06:33 -0700)
committerCarl Worth <cworth@cworth.org>
Sat, 24 Apr 2010 13:33:32 +0000 (06:33 -0700)
commitd06a34ad5dcf4626164002e78d8b3ab01a5dd1a5
tree6737f848af15091d78bb7ca9f64333afc99626cd
parentc87d17f28e67fd636b41507d78d058fc92e90a06
notmuch reply: Handle notmuch_message_get_header returning NULL.

This seems a rather unlikely case, (replying to a message that
disappears out from under us half way through the reply), but
notmuch_message_get_header is documented to return NULL in error
cases, so we might as well deal sanely with that (rather than just
crashing).
notmuch-reply.c