summaryrefslogtreecommitdiff
path: root/lib/notmuch.h
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2009-11-11 23:00:58 -0800
committerCarl Worth <cworth@cworth.org>2009-11-11 23:00:58 -0800
commit091d18c54c046a08bda9d88982601589a1deea37 (patch)
tree71d02f10bcdd4ac0ae01fadd297d2bfe135d4b72 /lib/notmuch.h
parent5d614048b479fe998177668301da4b5c1fd9f56a (diff)
notmuch show: Avoid segmentation for message with no subject.
It's safer to return an empty string rather than NULL for missing header values.
Diffstat (limited to 'lib/notmuch.h')
-rw-r--r--lib/notmuch.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/notmuch.h b/lib/notmuch.h
index c1c7980..40a1dca 100644
--- a/lib/notmuch.h
+++ b/lib/notmuch.h
@@ -618,8 +618,8 @@ notmuch_message_get_date (notmuch_message_t *message);
* modified or freed by the caller (nor should it be referenced after
* the message is destroyed).
*
- * Returns NULL if the message does not contain a header line matching
- * 'header' of if any error occurs.
+ * Returns an empty string ("") if the message does not contain a
+ * header line matching 'header'. Returns NULL if any error occurs.
*/
const char *
notmuch_message_get_header (notmuch_message_t *message, const char *header);