From: Roy Marples Date: Tue, 31 Mar 2015 21:16:34 +0000 (+0000) Subject: CID 1292550: Missing call to va_end(). X-Git-Tag: v6.8.2~45 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=daca6863d55ee69bf28dd508169ca724e0c516aa;p=thirdparty%2Fdhcpcd.git CID 1292550: Missing call to va_end(). --- diff --git a/common.c b/common.c index 80a49cde..1b6a994e 100644 --- a/common.c +++ b/common.c @@ -189,12 +189,12 @@ logger(struct dhcpcd_ctx *ctx, int pri, const char *fmt, ...) char fmt_cpy[1024]; #endif - serrno = errno; - va_start(va, fmt); - if (pri >= LOG_DEBUG && ctx && !(ctx->options & DHCPCD_DEBUG)) return; + serrno = errno; + va_start(va, fmt); + #ifndef HAVE_PRINTF_M /* Print strerrno(errno) in place of %m */ if (ctx == NULL || !(ctx->options & DHCPCD_QUIET) || ctx->log_fd != -1)