From: Nicholas Clark Date: Tue, 9 May 2006 19:31:04 +0000 (+0000) Subject: Gv_AMupdate() always creates magic, so mg can never be NULL. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=a9fd4e40a4a3d556fd6cc1922cda2d372d2f7dbe;p=p5sagit%2Fp5-mst-13.2.git Gv_AMupdate() always creates magic, so mg can never be NULL. p4raw-id: //depot/perl@28143 --- diff --git a/gv.c b/gv.c index f012129..c716c2b 100644 --- a/gv.c +++ b/gv.c @@ -1601,6 +1601,7 @@ Perl_gv_handler(pTHX_ HV *stash, I32 id) Gv_AMupdate(stash); mg = mg_find((SV*)stash, PERL_MAGIC_overload_table); } + assert(mg); amtp = (AMT*)mg->mg_ptr; if ( amtp->was_ok_am != PL_amagic_generation || amtp->was_ok_sub != PL_sub_generation )