summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/perl
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2001-09-05 22:32:47 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2001-09-05 22:32:47 +0000
commit772191eebf6a62b3fe9de2482c910de8c79000d5 (patch)
treeeea109f48afccf4e7cab1ea695e65fec36d1cf5e /gnu/usr.bin/perl
parenta30f0def118756a387cba2c5eac41a702277da77 (diff)
make sure that va_start() has matching va_end()
Diffstat (limited to 'gnu/usr.bin/perl')
-rw-r--r--gnu/usr.bin/perl/x2p/util.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/gnu/usr.bin/perl/x2p/util.c b/gnu/usr.bin/perl/x2p/util.c
index ab24808d73b..0da649a23ec 100644
--- a/gnu/usr.bin/perl/x2p/util.c
+++ b/gnu/usr.bin/perl/x2p/util.c
@@ -1,11 +1,14 @@
-/* $RCSfile: util.c,v $$Revision: 4.1 $$Date: 92/08/07 18:29:29 $
+/* $RCSfile: util.c,v $$Revision: 1.5 $$Date: 2001/05/24 18:36:41 $
*
* Copyright (c) 1991-2001, Larry Wall
*
* You may distribute under the terms of either the GNU General Public
* License or the Artistic License, as specified in the README file.
*
- * $Log: util.c,v $
+ * $Log: util.c,v $
+ * Revision 1.5 2001/05/24 18:36:41 millert
+ * merge in perl 5.6.1 with our local changes
+ *
*/
#include "EXTERN.h"
@@ -183,6 +186,7 @@ croak(char *pat,...)
va_start(args, pat);
vfprintf(stderr,pat,args);
+ va_end(args);
#else
fprintf(stderr,pat,a1,a2,a3,a4);
#endif
@@ -197,6 +201,7 @@ fatal(char *pat,...)
va_start(args, pat);
vfprintf(stderr,pat,args);
+ va_end(args);
#else
fprintf(stderr,pat,a1,a2,a3,a4);
#endif
@@ -214,6 +219,7 @@ warn(char *pat,...)
va_start(args, pat);
vfprintf(stderr,pat,args);
+ va_end(args);
#else
fprintf(stderr,pat,a1,a2,a3,a4);
#endif