This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Remove if(isGV_with_GP(PL_defoutgv)) checks from mg.c
authorFather Chrysostomos <sprout@cpan.org>
Tue, 13 Sep 2011 06:31:18 +0000 (23:31 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Tue, 13 Sep 2011 06:31:18 +0000 (23:31 -0700)
commitacbe1b9d7cdeb5a96064758057f567cd2bc0c4f1
tree1fc7986e429926a7f69055bcf657ba608001922f
parentcfffe6dc54b2b7f87890d94f2b34b19ccad72ec3
Remove if(isGV_with_GP(PL_defoutgv)) checks from mg.c

Commit 099be4f1d added code to cope with this:

    my $x = *STDERR; select($x); $x = 1;

which would cause PL_defoutgv to hold something other than a GV,
resulting in various crashes.

Commit 2acc3314 changed the way rv2gv works on fake globs, and inad-
vertently fixed this problem, too, so PL_defoutgv can no longer end up
holding something other than a GV.

So the code that checks if(isGV_with_GP(PL_defoutgv)) can go.
mg.c