X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=sendlib.c;h=5fc706cf30f1bb3cf44341ad2a8a70c769ab98b2;hp=5aa797489c89698eaaf73b7a6624a486a053716f;hb=9aae63e2d1cce39bb0928362416a8d17b953ca5e;hpb=ecaab35b973fbceb58b5ed174971c82762cc0199 diff --git a/sendlib.c b/sendlib.c index 5aa7974..5fc706c 100644 --- a/sendlib.c +++ b/sendlib.c @@ -833,7 +833,7 @@ CONTENT *mutt_get_content_info (const char *fname, BODY * b) } info = p_new(CONTENT, 1); - memset (&state, 0, sizeof (state)); + p_clear(&state, 1); if (b != NULL && b->type == TYPETEXT && (!b->noconv && !b->force_charset)) { char *chs = mutt_get_parameter ("charset", b->parameter); @@ -1052,7 +1052,7 @@ static void transform_to_7bit (BODY * a, FILE * fpin) STATE s; struct stat sb; - memset (&s, 0, sizeof (s)); + p_clear(&s, 1); for (; a; a = a->next) { if (a->type == TYPEMULTIPART) { if (a->encoding != ENC7BIT)