diff options
author | kevlo <kevlo@FreeBSD.org> | 2012-05-29 01:48:06 +0000 |
---|---|---|
committer | kevlo <kevlo@FreeBSD.org> | 2012-05-29 01:48:06 +0000 |
commit | 07ebfe1b9c18245d771125096d6654ee06f14c21 (patch) | |
tree | ab9b314dc9e2edd5a771820aeac2cbe20228150c /sbin/fsck_msdosfs | |
parent | 40701fe3e34fea8f946ae14377ff7b45eb936427 (diff) | |
download | FreeBSD-src-07ebfe1b9c18245d771125096d6654ee06f14c21.zip FreeBSD-src-07ebfe1b9c18245d771125096d6654ee06f14c21.tar.gz |
Make sure that each va_start has one and only one matching va_end,
especially in error cases.
Diffstat (limited to 'sbin/fsck_msdosfs')
-rw-r--r-- | sbin/fsck_msdosfs/main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sbin/fsck_msdosfs/main.c b/sbin/fsck_msdosfs/main.c index 9ec15ca..e9baf84 100644 --- a/sbin/fsck_msdosfs/main.c +++ b/sbin/fsck_msdosfs/main.c @@ -138,6 +138,7 @@ ask(int def, const char *fmt, ...) va_start(ap, fmt); vsnprintf(prompt, sizeof(prompt), fmt, ap); + va_end(ap); if (alwaysyes || rdonly) { printf("%s? %s\n", prompt, rdonly ? "no" : "yes"); return !rdonly; |