]> git.notmuchmail.org Git - notmuch/blobdiff - message.c
Don't hash headers we won't end up using.
[notmuch] / message.c
index 646403fb6fb198417766b76920e9ee1bfd65232b..97df4b270fefe344577ae32f24c7bc51331a0499 100644 (file)
--- a/message.c
+++ b/message.c
@@ -241,7 +241,7 @@ notmuch_message_get_header (notmuch_message_t *message,
     contains = g_hash_table_lookup_extended (message->headers,
                                             header_desired, NULL,
                                             (gpointer *) &value);
-    if (contains)
+    if (contains && value)
        return value;
 
     if (message->parsing_finished)