X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fmhstore.c;h=596df72853c94155716f6cc9ff15ac815b2f1a1f;hp=2b909effb4b796e71829642628411d9f4ed7eb2d;hb=9a990c3302e6bf6c5c313541cbc1cbcea16dcb4d;hpb=cde72ae86fdf635342a573fc1ca5239702ca554e diff --git a/uip/mhstore.c b/uip/mhstore.c index 2b909ef..596df72 100644 --- a/uip/mhstore.c +++ b/uip/mhstore.c @@ -479,7 +479,7 @@ store_generic(CT ct) if (autosw && ct->c_type != CT_MESSAGE) { /* First check for "filename" in Content-Disposition header */ filename = extract_name_value("filename", ct->c_dispo); - if (strcmp(filename, ct->c_dispo)!=0) { + if (filename && strcmp(filename, ct->c_dispo)!=0) { /* We found "filename" */ cp = mhbasename(filename); if (*cp && *cp!='.' && *cp!='|' && *cp!='!' &&