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 /bin/pax/tty_subs.c | |
parent | a30f0def118756a387cba2c5eac41a702277da77 (diff) |
make sure that va_start() has matching va_end()
Diffstat (limited to 'bin/pax/tty_subs.c')
-rw-r--r-- | bin/pax/tty_subs.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/bin/pax/tty_subs.c b/bin/pax/tty_subs.c index 0137e21bcbb..7e3b2d88e18 100644 --- a/bin/pax/tty_subs.c +++ b/bin/pax/tty_subs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tty_subs.c,v 1.6 1999/08/09 22:22:52 pjanzen Exp $ */ +/* $OpenBSD: tty_subs.c,v 1.7 2001/09/05 22:32:27 deraadt Exp $ */ /* $NetBSD: tty_subs.c,v 1.5 1995/03/21 09:07:52 cgd Exp $ */ /*- @@ -42,7 +42,7 @@ #if 0 static char sccsid[] = "@(#)tty_subs.c 8.2 (Berkeley) 4/18/94"; #else -static char rcsid[] = "$OpenBSD: tty_subs.c,v 1.6 1999/08/09 22:22:52 pjanzen Exp $"; +static char rcsid[] = "$OpenBSD: tty_subs.c,v 1.7 2001/09/05 22:32:27 deraadt Exp $"; #endif #endif /* not lint */ @@ -126,8 +126,10 @@ tty_prnt(fmt, va_alist) # else va_start(ap); # endif - if (ttyoutf == NULL) + if (ttyoutf == NULL) { + va_end(ap); return; + } (void)vfprintf(ttyoutf, fmt, ap); va_end(ap); (void)fflush(ttyoutf); |