summaryrefslogtreecommitdiff
path: root/mathoms.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2006-11-06 22:21:05 +0000
committerNicholas Clark <nick@ccl4.org>2006-11-06 22:21:05 +0000
commit9c6bc640227cd4fa081b32554378abe794cacfc0 (patch)
treea489754dba985d4d26d03fd993aed577a36e9a83 /mathoms.c
parent797c717188459bd306f22db4f33d8350f22fec7c (diff)
downloadperl-9c6bc640227cd4fa081b32554378abe794cacfc0.tar.gz
assert() that SvPV_set() isn't used on arrays.
p4raw-id: //depot/perl@29221
Diffstat (limited to 'mathoms.c')
-rw-r--r--mathoms.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mathoms.c b/mathoms.c
index d15aec95f4..79a3c319b4 100644
--- a/mathoms.c
+++ b/mathoms.c
@@ -554,7 +554,7 @@ Perl_av_fake(pTHX_ register I32 size, register SV **strp)
AvALLOC(av) = ary;
Copy(strp,ary,size,SV*);
AvREIFY_only(av);
- SvPV_set(av, (char*)ary);
+ AvARRAY(av) = ary;
AvFILLp(av) = size - 1;
AvMAX(av) = size - 1;
while (size--) {