diff options
-rw-r--r-- | unmime.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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++) ; |