Fix for #56874: maybe small error in perlxs.pod example
Marcus Holland-Moritz [Sun, 13 Jul 2008 19:04:20 +0000 (19:04 +0000)]
p4raw-id: //depot/perl@34137

pod/perlxs.pod

index f88565b..9e70c69 100644 (file)
@@ -1094,8 +1094,8 @@ return value, should the need arise.
           time_t  timep;
           bool_t x;
         CODE:
-          ST(0) = sv_newmortal();
           if( rpcb_gettime( host, &timep ) ){
+               ST(0) = sv_newmortal();
                sv_setnv( ST(0), (double)timep);
           }
           else{