[ID 20001024.007] [PATCH] "Dump local *FH" causes SEGV
Mike Guy [Tue, 24 Oct 2000 14:59:40 +0000 (15:59 +0100)]
Message-Id: <E13o4c8-00076u-00@libra.cus.cam.ac.uk>

p4raw-id: //depot/perl@7435

scope.c

diff --git a/scope.c b/scope.c
index 0544b89..7c904b4 100644 (file)
--- a/scope.c
+++ b/scope.c
@@ -302,6 +302,7 @@ Perl_save_gp(pTHX_ GV *gv, I32 empty)
        GvGP(gv) = gp_ref(gp);
        GvSV(gv) = NEWSV(72,0);
        GvLINE(gv) = CopLINE(PL_curcop);
+       GvFILE(gv) = CopFILE(PL_curcop) ? CopFILE(PL_curcop) : "";
        GvEGV(gv) = gv;
     }
     else {