summaryrefslogtreecommitdiff
path: root/pp.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1999-01-17 13:39:59 +0000
committerGurusamy Sarathy <gsar@cpan.org>1999-01-17 13:39:59 +0000
commit13d7cbc19a96f5e624f1b194ed83075a47c1251d (patch)
treef5ba9055a73083244756b07b8d8bfe11d29f58e3 /pp.c
parent51a19bc0654ae83130b5db1dfb665bcc81c7afd1 (diff)
downloadperl-13d7cbc19a96f5e624f1b194ed83075a47c1251d.tar.gz
bogus assert()
p4raw-id: //depot/perl@2633
Diffstat (limited to 'pp.c')
-rw-r--r--pp.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/pp.c b/pp.c
index 44114e79f3..84ee4f4fca 100644
--- a/pp.c
+++ b/pp.c
@@ -2853,12 +2853,8 @@ PP(pp_splice)
newlen = SP - MARK;
diff = newlen - length;
- if (newlen && !AvREAL(ary)) {
- if (AvREIFY(ary))
- av_reify(ary);
- else
- assert(AvREAL(ary)); /* would leak, so croak */
- }
+ if (newlen && !AvREAL(ary) && AvREIFY(ary))
+ av_reify(ary);
if (diff < 0) { /* shrinking the area */
if (newlen) {