summaryrefslogtreecommitdiffstats
path: root/rfc2231.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1999-11-04 21:35:32 +0000
committerThomas Roessler <roessler@does-not-exist.org>1999-11-04 21:35:32 +0000
commit785ee3db82f6ca0855d2c4a37aef4d4350a102e9 (patch)
treeee98f89af87712ca02adfd257c839ebe3e72ee3e /rfc2231.c
parentdd2602a446815c0eca2b8cb1b2765b7f4fca2ba4 (diff)
Catch a segmenatation fault. Note that this is not the real fix for
the problem...
Diffstat (limited to 'rfc2231.c')
-rw-r--r--rfc2231.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rfc2231.c b/rfc2231.c
index 2ef80b14..e4a7dfdb 100644
--- 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;