aboutsummaryrefslogtreecommitdiff
path: root/message.c
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2009-10-19 13:48:13 -0700
committerCarl Worth <cworth@cworth.org>2009-10-19 13:48:13 -0700
commit45f0d7bcab72ff6b8375804d3e518f961bd9a96f (patch)
tree78ba295306d5e0c660a15e3c20b9ac097df7fb8c /message.c
parentc5eea2b77ef3fb90c8ddcb953f1086ba5bb123f3 (diff)
Don't hash headers we won't end up using.
Just saving a little work here.
Diffstat (limited to 'message.c')
-rw-r--r--message.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/message.c b/message.c
index 646403fb..97df4b27 100644
--- 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)