Source-Changes-HG archive

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

[src/trunk]: src/sbin/fdisk CID/979997: missing va_end()



details:   https://anonhg.NetBSD.org/src/rev/28cc4cb3cfe2
branches:  trunk
changeset: 784768:28cc4cb3cfe2
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Feb 09 01:50:04 2013 +0000

description:
CID/979997: missing va_end()

diffstat:

 sbin/fdisk/fdisk.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 53586e801ebc -r 28cc4cb3cfe2 sbin/fdisk/fdisk.c
--- a/sbin/fdisk/fdisk.c        Sat Feb 09 01:46:30 2013 +0000
+++ b/sbin/fdisk/fdisk.c        Sat Feb 09 01:50:04 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fdisk.c,v 1.142 2012/06/05 13:41:23 tsutsui Exp $ */
+/*     $NetBSD: fdisk.c,v 1.143 2013/02/09 01:50:04 christos Exp $ */
 
 /*
  * Mach Operating System
@@ -39,7 +39,7 @@
 #include <sys/cdefs.h>
 
 #ifndef lint
-__RCSID("$NetBSD: fdisk.c,v 1.142 2012/06/05 13:41:23 tsutsui Exp $");
+__RCSID("$NetBSD: fdisk.c,v 1.143 2013/02/09 01:50:04 christos Exp $");
 #endif /* not lint */
 
 #define MBRPTYPENAMES
@@ -2769,8 +2769,8 @@
        va_list ap;
 
        va_start(ap, str);
-
        vprintf(str, ap);
+       va_end(ap);
        printf(" [n] ");
 
        first = ch = getchar();



Home | Main Index | Thread Index | Old Index