From: Pierre Habouzit Date: Sat, 4 Nov 2006 00:50:31 +0000 (+0100) Subject: fix small bug from julien X-Git-Url: http://git.madism.org/?a=commitdiff_plain;h=dc35ba82dbe9ba8cb27e623949dcd4b91930d3c5;hp=cac1491258e026b8c8459b2ad408a6bf2e8a03bc;p=apps%2Fmadmutt.git fix small bug from julien Signed-off-by: Pierre Habouzit --- diff --git a/attach.c b/attach.c index 3323af6..e1cd5b6 100644 --- a/attach.c +++ b/attach.c @@ -325,6 +325,8 @@ void mutt_check_lookup_list (BODY * b, char *type, int len) BODY tmp; int n; + p_clear(&tmp, 1); + if ((n = mutt_lookup_mime_type (&tmp, b->filename)) != TYPEOTHER) { snprintf (type, len, "%s/%s", n == TYPEAUDIO ? "audio" :