For duping SAVEHINTS it rather helps if you pay attention to what is
Nicholas Clark [Thu, 13 Apr 2006 14:14:57 +0000 (14:14 +0000)]
actually being pushed onto the save stack.

p4raw-id: //depot/perl@27790

sv.c

diff --git a/sv.c b/sv.c
index d490e42..b13d6d9 100644 (file)
--- a/sv.c
+++ b/sv.c
@@ -10578,9 +10578,9 @@ Perl_ss_dup(pTHX_ PerlInterpreter *proto_perl, CLONE_PARAMS* param)
            i = POPINT(ss,ix);
            TOPINT(nss,ix) = i;
            ptr = POPPTR(ss,ix);
-           if (((COP *)ptr)->cop_hints) {
+           if (ptr) {
                HINTS_REFCNT_LOCK;
-               ((COP *)ptr)->cop_hints->refcounted_he_refcnt++;
+               ((struct refcounted_he *)ptr)->refcounted_he_refcnt++;
                HINTS_REFCNT_UNLOCK;
            }
            TOPPTR(nss,ix) = ptr;