projects
/
p5sagit/p5-mst-13.2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
b56fc9e
)
Gv_AMupdate() always creates magic, so mg can never be NULL.
Nicholas Clark [Tue, 9 May 2006 19:31:04 +0000 (19:31 +0000)]
p4raw-id: //depot/perl@28143
gv.c
patch
|
blob
|
blame
|
history
diff --git
a/gv.c
b/gv.c
index
f012129
..
c716c2b
100644
(file)
--- 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 )