This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
integrate change#11847 from maint-5.6
authorGurusamy Sarathy <gsar@cpan.org>
Mon, 3 Sep 2001 17:07:54 +0000 (17:07 +0000)
committerGurusamy Sarathy <gsar@cpan.org>
Mon, 3 Sep 2001 17:07:54 +0000 (17:07 +0000)
typo in perl_clone() code causes local(*foo) breakage in pseudo-fork()

p4raw-link: @11847 on //depot/maint-5.6/perl: ce3a5a02281aa23d1d6785a268dc7cc0f211788e

p4raw-id: //depot/perl@11848

sv.c

diff --git a/sv.c b/sv.c
index 3250d2a..f31855b 100644 (file)
--- a/sv.c
+++ b/sv.c
@@ -9427,7 +9427,7 @@ Perl_ss_dup(pTHX_ PerlInterpreter *proto_perl, clone_params* param)
            TOPPTR(nss,ix) = gp = gp_dup(gp, param);
            (void)GpREFCNT_inc(gp);
            gv = (GV*)POPPTR(ss,ix);
-           TOPPTR(nss,ix) = gv_dup_inc(c, param);
+           TOPPTR(nss,ix) = gv_dup_inc(gv, param);
             c = (char*)POPPTR(ss,ix);
            TOPPTR(nss,ix) = pv_dup(c);
            iv = POPIV(ss,ix);