summaryrefslogtreecommitdiff
path: root/x2p/util.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-12-09 23:49:19 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-12-09 23:49:19 +0000
commit304b2fa907abeb9c21f4411c980ea090225121a3 (patch)
treefc7f2f3d2aa885e2056245b519b777f68180810d /x2p/util.c
parent99ed927b9cb7383662696a50cb0d8e2aa25d47d7 (diff)
downloadperl-304b2fa907abeb9c21f4411c980ea090225121a3.tar.gz
make sure that va_start() has matching va_end();
from OpenBSD 3.0. p4raw-id: //depot/perl@13574
Diffstat (limited to 'x2p/util.c')
-rw-r--r--x2p/util.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/x2p/util.c b/x2p/util.c
index ab24808d73..73f3d0f604 100644
--- a/x2p/util.c
+++ b/x2p/util.c
@@ -183,6 +183,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 +198,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 +216,7 @@ warn(char *pat,...)
va_start(args, pat);
vfprintf(stderr,pat,args);
+ va_end(args);
#else
fprintf(stderr,pat,a1,a2,a3,a4);
#endif