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 /usr.bin | |
parent | a30f0def118756a387cba2c5eac41a702277da77 (diff) |
make sure that va_start() has matching va_end()
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/make/error.c | 3 | ||||
-rw-r--r-- | usr.bin/more/more.c | 4 | ||||
-rw-r--r-- | usr.bin/oldrdist/server.c | 5 |
3 files changed, 7 insertions, 5 deletions
diff --git a/usr.bin/make/error.c b/usr.bin/make/error.c index f2624f91dcd..8bcd6363cee 100644 --- a/usr.bin/make/error.c +++ b/usr.bin/make/error.c @@ -1,5 +1,5 @@ /* $OpenPackages$ */ -/* $OpenBSD: error.c,v 1.8 2001/07/18 14:49:13 espie Exp $ */ +/* $OpenBSD: error.c,v 1.9 2001/09/05 22:32:41 deraadt Exp $ */ /* * Copyright (c) 2001 Marc Espie. @@ -232,5 +232,6 @@ Parse_Error(va_alist) #endif ParseVErrorInternal(Parse_Getfilename(), Parse_Getlineno(), type, fmt, ap); + va_end(va); } diff --git a/usr.bin/more/more.c b/usr.bin/more/more.c index 8d00f0fcd9f..b3d4f4a3be5 100644 --- a/usr.bin/more/more.c +++ b/usr.bin/more/more.c @@ -1,4 +1,4 @@ -/* $OpenBSD: more.c,v 1.13 2001/09/04 23:35:59 millert Exp $ */ +/* $OpenBSD: more.c,v 1.14 2001/09/05 22:32:41 deraadt Exp $ */ /*- * Copyright (c) 1980 The Regents of the University of California. * All rights reserved. @@ -1438,8 +1438,8 @@ va_dcl va_start(argp); execvp (cmd, argp); write (2, "exec failed\n", 12); - exit (1); va_end(argp); /* balance {}'s for some UNIX's */ + exit (1); } if (id > 0) { signal (SIGINT, SIG_IGN); diff --git a/usr.bin/oldrdist/server.c b/usr.bin/oldrdist/server.c index 21afe62243f..fa519e27a66 100644 --- a/usr.bin/oldrdist/server.c +++ b/usr.bin/oldrdist/server.c @@ -1,4 +1,4 @@ -/* $OpenBSD: server.c,v 1.13 2001/07/09 07:04:50 deraadt Exp $ */ +/* $OpenBSD: server.c,v 1.14 2001/09/05 22:32:42 deraadt Exp $ */ /* * Copyright (c) 1983, 1993 @@ -35,7 +35,7 @@ #ifndef lint /* from: static char sccsid[] = "@(#)server.c 8.1 (Berkeley) 6/9/93"; */ -static char *rcsid = "$OpenBSD: server.c,v 1.13 2001/07/09 07:04:50 deraadt Exp $"; +static char *rcsid = "$OpenBSD: server.c,v 1.14 2001/09/05 22:32:42 deraadt Exp $"; #endif /* not lint */ #include <sys/wait.h> @@ -1539,6 +1539,7 @@ fatal(fmt, va_alist) (void) vfprintf(lfp, fmt, ap); fflush(lfp); } + va_end(ap); cleanup(0); } |