From ec6bee84f642150ad4db5a83f4a92478bba3b250 Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Wed, 20 Jul 2016 23:11:13 +0200 Subject: mshow: extract file name logic --- rfc2045.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'rfc2045.c') diff --git a/rfc2045.c b/rfc2045.c index ef073d3..e919b28 100644 --- a/rfc2045.c +++ b/rfc2045.c @@ -64,6 +64,8 @@ blaze822_mime_body(struct message *msg, int blaze822_mime_parameter(char *s, char *name, char **starto, char **stopo) { + if (!s) + return 0; s = strchr(s, ';'); if (!s) return 0; -- cgit 1.4.1