X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fmhstoresbr.c;h=151b2e6474ceadc827011f4bf4fe9cf5481cbbbc;hb=03bf20a885b3953a0385e814ba4e0196b46f6159;hp=1c05a42d0fd0953e77aa240207702ccd3b742ea1;hpb=63298d0f1870b5df16ac8664494e5a24b224dfc5;p=mmh diff --git a/uip/mhstoresbr.c b/uip/mhstoresbr.c index 1c05a42..151b2e6 100644 --- a/uip/mhstoresbr.c +++ b/uip/mhstoresbr.c @@ -482,7 +482,7 @@ ct_compar (CT *a, CT *b) static int store_content (CT ct, CT p) { - int appending = 0, msgnum; + int appending = 0, msgnum = 0; int is_partial = 0, first_partial = 0; int last_partial = 0; char *cp, buffer[BUFSIZ]; @@ -560,7 +560,7 @@ store_content (CT ct, CT p) char *tmpfilenam, *folder; /* Store content in temporary file for now */ - tmpfilenam = m_scratch ("", invo_name); + tmpfilenam = m_mktemp(invo_name, NULL, NULL); ct->c_storage = add (tmpfilenam, NULL); /* Get the folder name */