diff options
author | Gisle Aas <gisle@activestate.com> | 2005-12-28 13:25:30 +0000 |
---|---|---|
committer | Gisle Aas <gisle@activestate.com> | 2005-12-28 13:25:30 +0000 |
commit | c82c7adca4650d274d01de66ba3967c9261ee1de (patch) | |
tree | 016e76c119740f96f6cc5f23c889a61a7859bbe7 /av.c | |
parent | ba5d1d603a0bd27a6394ad1bdb59d84f2f3c149e (diff) | |
download | perl-c82c7adca4650d274d01de66ba3967c9261ee1de.tar.gz |
Cleanup; replace a croak("panic: ...") with assert().
p4raw-id: //depot/perl@26514
Diffstat (limited to 'av.c')
-rw-r--r-- | av.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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; } |