summaryrefslogtreecommitdiff
path: root/reentr.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2007-08-29 17:04:53 -0400
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2007-08-30 13:49:14 +0000
commitfe5bfecd71ca735f83568f7bc2b9f22cc82e3d61 (patch)
tree1fbf396647db987f0166de4ee32bf04f3c6c5c25 /reentr.c
parent0cb1540ad85637e5abb7372876a8c85c855a7427 (diff)
downloadperl-fe5bfecd71ca735f83568f7bc2b9f22cc82e3d61.tar.gz
misc blead stuff
Message-ID: <46D617B5.3000002@iki.fi> p4raw-id: //depot/perl@31765
Diffstat (limited to 'reentr.c')
-rw-r--r--reentr.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/reentr.c b/reentr.c
index 9447fc3f58..ffe7eb0f1e 100644
--- a/reentr.c
+++ b/reentr.c
@@ -313,6 +313,8 @@ Perl_reentrant_retry(const char *f, ...)
{
dTHX;
void *retptr = NULL;
+ va_list ap;
+ va_start(ap, f);
#ifdef USE_REENTRANT_API
# if defined(USE_HOSTENT_BUFFER) || defined(USE_GRENT_BUFFER) || defined(USE_NETENT_BUFFER) || defined(USE_PWENT_BUFFER) || defined(USE_PROTOENT_BUFFER) || defined(USE_SERVENT_BUFFER)
void *p0;
@@ -326,9 +328,6 @@ Perl_reentrant_retry(const char *f, ...)
# if defined(USE_HOSTENT_BUFFER) || defined(USE_NETENT_BUFFER) || defined(USE_PROTOENT_BUFFER) || defined(USE_SERVENT_BUFFER)
int anint;
# endif
- va_list ap;
-
- va_start(ap, f);
switch (PL_op->op_type) {
#ifdef USE_HOSTENT_BUFFER
@@ -531,11 +530,10 @@ Perl_reentrant_retry(const char *f, ...)
/* Not known how to retry, so just fail. */
break;
}
-
- va_end(ap);
#else
PERL_UNUSED_ARG(f);
#endif
+ va_end(ap);
return retptr;
}