From: Richard Russon Date: Tue, 30 Jan 2018 22:34:03 +0000 (+0000) Subject: fix rfc2047 field decoding X-Git-Tag: neomutt-20180223~25 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e0e163daa37ba1aecc4c0b480c1c6d486c977317;p=neomutt fix rfc2047 field decoding --- diff --git a/mutt/rfc2047.c b/mutt/rfc2047.c index 65c07b30e..3f91f2a54 100644 --- a/mutt/rfc2047.c +++ b/mutt/rfc2047.c @@ -658,6 +658,9 @@ void mutt_rfc2047_encode(char **pd, const char *specials, int col, const char *c */ void mutt_rfc2047_decode(char **pd) { + if (!pd || !*pd) + return; + struct Buffer buf = { 0 }; /* Output buffer */ char *s = *pd; /* Read pointer */ char *beg; /* Begin of encoded word */ @@ -745,5 +748,4 @@ void mutt_rfc2047_decode(char **pd) mutt_buffer_addch(&buf, '\0'); *pd = buf.data; - return; }