]> granicus.if.org Git - mutt/commitdiff
Catch a segmenatation fault. Note that this is not the real fix for
authorThomas Roessler <roessler@does-not-exist.org>
Thu, 4 Nov 1999 21:35:32 +0000 (21:35 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Thu, 4 Nov 1999 21:35:32 +0000 (21:35 +0000)
the problem...

rfc2231.c

index 2ef80b14a4de4b5b7dde2faa65b73201e798cc92..e4a7dfdb84898646e3b7dacd2450fb32bc8d30ee 100644 (file)
--- a/rfc2231.c
+++ b/rfc2231.c
@@ -87,7 +87,7 @@ void rfc2231_decode_parameters (PARAMETER **headp)
        * Internet Gateways.  So we actually decode it.
        */
 
-      if (option (OPTRFC2047PARAMS) && strstr (p->value, "=?"))
+      if (option (OPTRFC2047PARAMS) && p->value && strstr (p->value, "=?"))
        rfc2047_decode (p->value, p->value, strlen (p->value) + 1);
 
       *last = p;