From d4bcca1aa235370bc20bc2734c0cd6f700b17871 Mon Sep 17 00:00:00 2001 From: Dmitry Bogatov Date: Sat, 27 Aug 2016 11:40:15 +0300 Subject: [PATCH] Fix missing va_end call in uip/mhmisc.c --- uip/mhmisc.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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; -- 1.7.10.4