This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Make setdefout accept only NN
authorFather Chrysostomos <sprout@cpan.org>
Thu, 24 May 2012 19:07:37 +0000 (12:07 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Thu, 7 Jun 2012 15:18:50 +0000 (08:18 -0700)
commit9a9bb270a1f2bcd7b19692797bdfbb5ea12ec08c
tree7eae7a8bad7476cc7270dbfed2702bdc3845549c
parent2748e6020278d4118252bc18ecc0db56ef04a973
Make setdefout accept only NN

Just search through the source for GvIOp(PL_defoutgv) and you will see
that perl assumes that PL_defoutgv is never null.

I tried setting it to null from XS and got crashes, unsurprisingly.

The only CPAN user of PL_defoutgv sets it to STDOUT.
embed.fnc
pp_sys.c
proto.h