Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/dhcpcd/dist CID 1292550: Missing call to va_end().



details:   https://anonhg.NetBSD.org/src/rev/2e76595eccd4
branches:  trunk
changeset: 337063:2e76595eccd4
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Mar 31 18:01:09 2015 +0000

description:
CID 1292550: Missing call to va_end().

diffstat:

 external/bsd/dhcpcd/dist/common.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (26 lines):

diff -r fe6ae44f60d2 -r 2e76595eccd4 external/bsd/dhcpcd/dist/common.c
--- a/external/bsd/dhcpcd/dist/common.c Tue Mar 31 17:58:30 2015 +0000
+++ b/external/bsd/dhcpcd/dist/common.c Tue Mar 31 18:01:09 2015 +0000
@@ -1,5 +1,5 @@
 #include <sys/cdefs.h>
- __RCSID("$NetBSD: common.c,v 1.10 2015/03/27 11:33:46 roy Exp $");
+ __RCSID("$NetBSD: common.c,v 1.11 2015/03/31 18:01:09 christos Exp $");
 
 /*
  * dhcpcd - DHCP client daemon
@@ -192,12 +192,12 @@
        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)



Home | Main Index | Thread Index | Old Index