summaryrefslogtreecommitdiff
path: root/av.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1998-11-06 20:36:50 +0000
committerGurusamy Sarathy <gsar@cpan.org>1998-11-06 20:36:50 +0000
commit352edd9075ba60982b61693a9f3cdf22a5d9b2f9 (patch)
tree79fbc7555022df6c09cc5125a3016b066faa4d5a /av.c
parent3095d9770ef6ed78f84315fc655ef2070c7b9c04 (diff)
downloadperl-352edd9075ba60982b61693a9f3cdf22a5d9b2f9.tar.gz
fix AvREALISH bogusness
p4raw-id: //depot/perl@2210
Diffstat (limited to 'av.c')
-rw-r--r--av.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/av.c b/av.c
index 3f288f3805..97f0ff8180 100644
--- a/av.c
+++ b/av.c
@@ -175,10 +175,7 @@ av_fetch(register AV *av, I32 key, I32 lval)
if (key > AvFILLp(av)) {
if (!lval)
return 0;
- if (AvREALISH(av))
- sv = NEWSV(5,0);
- else
- sv = sv_newmortal();
+ sv = NEWSV(5,0);
return av_store(av,key,sv);
}
if (AvARRAY(av)[key] == &PL_sv_undef) {