From: Dmitry Bogatov Date: Sat, 27 Aug 2016 08:40:15 +0000 (+0300) Subject: Fix missing va_end call in uip/mhmisc.c X-Git-Tag: mmh-0.4~72 X-Git-Url: http://git.marmaro.de/?a=commitdiff_plain;h=d4bcca1aa235370bc20bc2734c0cd6f700b17871;p=mmh Fix missing va_end call in uip/mhmisc.c --- diff --git a/uip/mhmisc.c b/uip/mhmisc.c index eb29e83..8e20fa9 100644 --- a/uip/mhmisc.c +++ b/uip/mhmisc.c @@ -146,7 +146,6 @@ losing_directory: void content_error(char *what, CT ct, char *fmt, ...) { - va_list arglist; int i, len, buflen; char *bp, buffer[BUFSIZ]; CI ci; @@ -161,9 +160,13 @@ content_error(char *what, CT ct, char *fmt, ...) buflen -= len; } - va_start(arglist, fmt); + { + va_list arglist; - vsnprintf(bp, buflen, fmt, arglist); + va_start(arglist, fmt); + vsnprintf(bp, buflen, fmt, arglist); + va_end(arglist); + } len = strlen(bp); bp += len; buflen -= len;