]> granicus.if.org Git - neomutt/commitdiff
Guard dequote with NULL check on personal field
authorBrendan Cully <brendan@kublai.com>
Tue, 2 Mar 2010 06:40:41 +0000 (22:40 -0800)
committerBrendan Cully <brendan@kublai.com>
Tue, 2 Mar 2010 06:40:41 +0000 (22:40 -0800)
copy.c

diff --git a/copy.c b/copy.c
index e3716b721d389147f0ab3f71eee1f83ade6372f7..7e1c654d8596ab73a319852840c03a87b8b475b8 100644 (file)
--- a/copy.c
+++ b/copy.c
@@ -939,7 +939,8 @@ static int address_header_decode (char **h)
   mutt_addrlist_to_local (a);
   rfc2047_decode_adrlist (a);
   for (cur = a; cur; cur = cur->next)
-    rfc822_dequote_comment (a->personal);
+    if (a->personal)
+      rfc822_dequote_comment (a->personal);
 
   /* angle brackets for return path are mandated by RfC5322,
    * so leave Return-Path as-is */