X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=sendlib.c;h=5fc706cf30f1bb3cf44341ad2a8a70c769ab98b2;hp=60673be44661fd91a0f2709cae4d26974ca9a20c;hb=9aae63e2d1cce39bb0928362416a8d17b953ca5e;hpb=7f7a0be369840b290248e5b0302beb447fa1b3cd diff --git a/sendlib.c b/sendlib.c index 60673be..5fc706c 100644 --- a/sendlib.c +++ b/sendlib.c @@ -14,11 +14,11 @@ #endif #include +#include #include #include #include "mutt.h" -#include "ascii.h" #include "handler.h" #include "recvattach.h" #include "mutt_curses.h" @@ -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)