summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2006-04-09 21:07:48 +0000
committerNicholas Clark <nick@ccl4.org>2006-04-09 21:07:48 +0000
commit337d28f50abb1285c55ea2649c039a2a0083b442 (patch)
treee13e343c39a05c9e0c72162ea018a7e913ab9173 /sv.c
parent0f0eef279b3be952546c621e078d7f4da86c02a1 (diff)
downloadperl-337d28f50abb1285c55ea2649c039a2a0083b442.tar.gz
Fix pointer error in change 27741, spotted by John E. Malmberg.
p4raw-id: //depot/perl@27752
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 797777be3a..de8f973fb7 100644
--- a/sv.c
+++ b/sv.c
@@ -10395,8 +10395,8 @@ Perl_ss_dup(pTHX_ PerlInterpreter *proto_perl, CLONE_PARAMS* param)
break;
case SAVEt_HV: /* hash reference */
case SAVEt_AV: /* array reference */
- av = (AV*)POPPTR(ss,ix);
- TOPPTR(nss,ix) = sv_dup_inc(av, param);
+ sv = POPPTR(ss,ix);
+ TOPPTR(nss,ix) = sv_dup_inc(sv, param);
gv = (GV*)POPPTR(ss,ix);
TOPPTR(nss,ix) = gv_dup(gv, param);
break;