diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-09-05 22:32:47 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-09-05 22:32:47 +0000 |
commit | 772191eebf6a62b3fe9de2482c910de8c79000d5 (patch) | |
tree | eea109f48afccf4e7cab1ea695e65fec36d1cf5e /sbin/fsck_msdos/main.c | |
parent | a30f0def118756a387cba2c5eac41a702277da77 (diff) |
make sure that va_start() has matching va_end()
Diffstat (limited to 'sbin/fsck_msdos/main.c')
-rw-r--r-- | sbin/fsck_msdos/main.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sbin/fsck_msdos/main.c b/sbin/fsck_msdos/main.c index 99394332a55..aec6ae0acad 100644 --- a/sbin/fsck_msdos/main.c +++ b/sbin/fsck_msdos/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.9 2000/01/22 20:24:57 deraadt Exp $ */ +/* $OpenBSD: main.c,v 1.10 2001/09/05 22:32:37 deraadt Exp $ */ /* $NetBSD: main.c,v 1.8 1996/10/17 20:29:53 cgd Exp $ */ /* @@ -35,7 +35,7 @@ #ifndef lint -static char rcsid[] = "$OpenBSD: main.c,v 1.9 2000/01/22 20:24:57 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: main.c,v 1.10 2001/09/05 22:32:37 deraadt Exp $"; #endif /* not lint */ #include <stdlib.h> @@ -145,6 +145,7 @@ ask(def, fmt, va_alist) va_start(ap); #endif vsnprintf(prompt, sizeof(prompt), fmt, ap); + va_end(ap); if (alwaysyes || rdonly) { printf("%s? %s\n", prompt, rdonly ? "no" : "yes"); return (!rdonly); |