This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Move freeing the old body after the creating of the new body.
[perl5.git] / minimod.pl
index 18b9c07..39f9763 100644 (file)
@@ -65,7 +65,7 @@ sub writemain{
     my ($tail1,$tail2) = ( $tail =~ /\A(.*\n)(\s*\}.*)\Z/s );
     print $tail1;
 
-    print "\tchar *file = __FILE__;\n";
+    print "\tconst char file[] = __FILE__;\n";
     print "\tdXSUB_SYS;\n" if $] > 5.002;
 
     foreach $_ (@exts){