X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fmhstore.c;h=971ee7ef0d259175fa9ea43dd00f1cd2e86aa012;hp=2b909effb4b796e71829642628411d9f4ed7eb2d;hb=93fa896ceb5fbebe2f1f6e6e36419a13f8ffd99f;hpb=6306992cd580d47c217edb1ae98d58b24d5be8c9 diff --git a/uip/mhstore.c b/uip/mhstore.c index 2b909ef..971ee7e 100644 --- a/uip/mhstore.c +++ b/uip/mhstore.c @@ -40,6 +40,7 @@ static struct swit switches[] = { { NULL, 0 } }; +char *version=VERSION; /* mhparse.c */ extern char *tmp; /* directory to place temp files */ @@ -291,7 +292,6 @@ main(int argc, char **argv) for (msgnum = 0; msgnum < msgs.size; msgnum++) if (!m_convert(mp, msgs.msgs[msgnum])) exit(EX_USAGE); - seq_setprev(mp); /* set the previous-sequence */ cts = mh_xcalloc(mp->numsel + 1, sizeof(*cts)); ctp = cts; @@ -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!='!' &&