aboutsummaryrefslogtreecommitdiffstats
path: root/unmime.c
diff options
context:
space:
mode:
Diffstat (limited to 'unmime.c')
-rw-r--r--unmime.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/unmime.c b/unmime.c
index 753c9aa1..bbdc7591 100644
--- a/unmime.c
+++ b/unmime.c
@@ -344,6 +344,9 @@ int CheckContentType(char *CntType)
char *p = CntType;
int i;
+ /* If no Content-Type header, it isn't MIME - don't touch it */
+ if (CntType == NULL) return 0;
+
/* Skip whitespace, if any */
for (; isspace(*p); p++) ;