sysio.t failure: fix undefined order of evaluation, from
Spider Boardman [Wed, 4 Nov 1998 01:22:30 +0000 (03:22 +0200)]
Subject: Not OK: perl 5.00553 on alpha-thread 5.0 [PATCH]
To: perlbug@perl.com
Message-ID: <MLIST_199811032227.RAA143892@web.zk3.dec.com>

p4raw-id: //depot/cfgperl@2189

pp_sys.c

index 7ae628b..d39ecb6 100644 (file)
--- a/pp_sys.c
+++ b/pp_sys.c
@@ -1464,8 +1464,10 @@ PP(pp_syswrite)
     djSP;
     int items = (SP - PL_stack_base) - TOPMARK;
     if (items == 2) {
+       SV *sv;
         EXTEND(SP, 1);
-        PUSHs(sv_2mortal(newSViv(sv_len(*SP))));
+       sv = sv_2mortal(newSViv(sv_len(*SP)));
+       PUSHs(sv);
         PUTBACK;
     }
     return pp_send(ARGS);