Make warnings.t pass with -DPERL_DONT_CREATE_GVSV
Nicholas Clark [Wed, 29 Jun 2005 20:24:12 +0000 (20:24 +0000)]
p4raw-id: //depot/perl@25011

pp_sys.c

index a34efa9..4f4be10 100644 (file)
--- a/pp_sys.c
+++ b/pp_sys.c
@@ -564,7 +564,7 @@ PP(pp_open)
        sv = *++MARK;
     }
     else {
-       sv = GvSV(gv);
+       sv = GvSVn(gv);
     }
 
     tmps = SvPV_const(sv, len);