X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=commands.c;h=889ac8a38defed37ae2e4c03f99b5fb1eccf051b;hp=0cfc226f8ddc64a31217f237cf9280149ea29e99;hb=3e611c4b53a33408955152e1c9336f8643ea096e;hpb=ecaab35b973fbceb58b5ed174971c82762cc0199 diff --git a/commands.c b/commands.c index 0cfc226..889ac8a 100644 --- a/commands.c +++ b/commands.c @@ -214,7 +214,7 @@ int mutt_display_message (HEADER * cur) } /* Invoke the builtin pager */ - memset (&info, 0, sizeof (pager_t)); + p_clear(&info, 1); info.hdr = cur; info.ctx = Context; rc = mutt_pager (NULL, tempfile, M_PAGER_MESSAGE, &info); @@ -580,7 +580,7 @@ void mutt_enter_command (void) return; err.data = errbuf; err.dsize = sizeof (errbuf); - memset (&token, 0, sizeof (token)); + p_clear(&token, 1); r = mutt_parse_rc_line (buffer, &token, &err); p_delete(&token.data); if (errbuf[0]) {