This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
gv.c:newGP: assert that PL_curcop is not NULL
authorFather Chrysostomos <sprout@cpan.org>
Sat, 10 Aug 2013 18:55:11 +0000 (11:55 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Sun, 11 Aug 2013 17:53:35 +0000 (10:53 -0700)
commitf5d98eaa982e26fadd6e4173f4515f6c2126566f
tree93456cc3384063493b8d2a77624e1c99226dd1b7
parent6e314d4f049a1b94d19f8b45006741632f2175a7
gv.c:newGP: assert that PL_curcop is not NULL

It should never be null here, and we want to know if it is.  (It can
be set to null in op.c:S_cop_free, but it should always have been set
to something else by the time newGP is called.)

Nevertheless, we should leave the null checks in place, to avoid sabo-
taging non-debugging builds if there are any remaining bugs here.
gv.c