From: Jarkko Hietaniemi Date: Sun, 9 Dec 2001 23:49:19 +0000 (+0000) Subject: make sure that va_start() has matching va_end(); X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=304b2fa907abeb9c21f4411c980ea090225121a3;p=p5sagit%2Fp5-mst-13.2.git make sure that va_start() has matching va_end(); from OpenBSD 3.0. p4raw-id: //depot/perl@13574 --- diff --git a/x2p/util.c b/x2p/util.c index ab24808..73f3d0f 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