This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Declarations must come first, or some compilers aren't happy.
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Sun, 20 Nov 2005 12:10:15 +0000 (12:10 +0000)
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Sun, 20 Nov 2005 12:10:15 +0000 (12:10 +0000)
(spotted by Jarkko)

p4raw-id: //depot/perl@26179

ext/B/B.xs

index 6b3d64c..04422b3 100644 (file)
@@ -1322,8 +1322,8 @@ precomp(mg)
         B::MAGIC        mg
     CODE:
         if (mg->mg_type == 'r') {
-            RETVAL = Nullsv;
             REGEXP* rx = (REGEXP*)mg->mg_obj;
+            RETVAL = Nullsv;
             if( rx )
                 RETVAL = newSVpvn( rx->precomp, rx->prelen );
         }