summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2006-04-13 14:14:57 +0000
committerNicholas Clark <nick@ccl4.org>2006-04-13 14:14:57 +0000
commit080ac8563ee686b6fd1b799a7c2d2edb079404a5 (patch)
tree62a31793cc75c3b7960c0c6c29747f750a92de8d /sv.c
parentae5031b371f095348493551a625aee038f332011 (diff)
downloadperl-080ac8563ee686b6fd1b799a7c2d2edb079404a5.tar.gz
For duping SAVEHINTS it rather helps if you pay attention to what is
actually being pushed onto the save stack. p4raw-id: //depot/perl@27790
Diffstat (limited to 'sv.c')
-rw-r--r--sv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sv.c b/sv.c
index d490e4218c..b13d6d998e 100644
--- 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;