summaryrefslogtreecommitdiff
path: root/av.c
diff options
context:
space:
mode:
authorGisle Aas <gisle@activestate.com>2005-12-28 13:25:30 +0000
committerGisle Aas <gisle@activestate.com>2005-12-28 13:25:30 +0000
commitc82c7adca4650d274d01de66ba3967c9261ee1de (patch)
tree016e76c119740f96f6cc5f23c889a61a7859bbe7 /av.c
parentba5d1d603a0bd27a6394ad1bdb59d84f2f3c149e (diff)
downloadperl-c82c7adca4650d274d01de66ba3967c9261ee1de.tar.gz
Cleanup; replace a croak("panic: ...") with assert().
p4raw-id: //depot/perl@26514
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 1366263629..6223136116 100644
--- a/av.c
+++ b/av.c
@@ -919,10 +919,7 @@ Perl_av_arylen_p(pTHX_ AV *av) {
if (!mg) {
mg = sv_magicext((SV*)av, 0, PERL_MAGIC_arylen_p, &PL_vtbl_arylen_p,
0, 0);
-
- if (!mg) {
- Perl_die(aTHX_ "panic: av_arylen_p");
- }
+ assert(mg);
/* sv_magicext won't set this for us because we pass in a NULL obj */
mg->mg_flags |= MGf_REFCOUNTED;
}