diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 1999-01-17 13:39:59 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1999-01-17 13:39:59 +0000 |
commit | 13d7cbc19a96f5e624f1b194ed83075a47c1251d (patch) | |
tree | f5ba9055a73083244756b07b8d8bfe11d29f58e3 /pp.c | |
parent | 51a19bc0654ae83130b5db1dfb665bcc81c7afd1 (diff) | |
download | perl-13d7cbc19a96f5e624f1b194ed83075a47c1251d.tar.gz |
bogus assert()
p4raw-id: //depot/perl@2633
Diffstat (limited to 'pp.c')
-rw-r--r-- | pp.c | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -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) { |