]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
CID 1292550: Missing call to va_end().
authorRoy Marples <roy@marples.name>
Tue, 31 Mar 2015 21:16:34 +0000 (21:16 +0000)
committerRoy Marples <roy@marples.name>
Tue, 31 Mar 2015 21:16:34 +0000 (21:16 +0000)
common.c

index 80a49cde297f670ce669f8930a09552384800ab7..1b6a994eafd83ed6e0b48a1a6f97d56fb525dc57 100644 (file)
--- 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)