X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=help.c;h=249882e1ef9924bcd98513a67310e2cf870c22b9;hp=abccfacc8c3af7202143160bd8a9d87e11b83b44;hb=3e611c4b53a33408955152e1c9336f8643ea096e;hpb=7f7a0be369840b290248e5b0302beb447fa1b3cd diff --git a/help.c b/help.c index abccfac..249882e 100644 --- a/help.c +++ b/help.c @@ -88,8 +88,8 @@ static int print_macro (FILE * f, int maxwidth, const char **macro) size_t len = m_strlen(*macro); mbstate_t mbstate1, mbstate2; - memset (&mbstate1, 0, sizeof (mbstate1)); - memset (&mbstate2, 0, sizeof (mbstate2)); + p_clear(&mbstate1, 1); + p_clear(&mbstate2, 1); for (; len && (k = mbrtowc (&wc, *macro, len, &mbstate1)); *macro += k, len -= k) { if (k == (size_t) (-1) || k == (size_t) (-2)) {