This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
[perl #115206] Don’t crash when vivifying $|
authorFather Chrysostomos <sprout@cpan.org>
Wed, 10 Oct 2012 03:47:18 +0000 (20:47 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Wed, 10 Oct 2012 13:08:23 +0000 (06:08 -0700)
commit4505a31f43ca4e1a0e9203b389f6d4bebab9d899
treef81c8a36f9bd6de6e852409144824f0ad58fd7df
parent8f25f6c031ddddc08edd62173255cda84d4a05fd
[perl #115206] Don’t crash when vivifying $|

It was trying to read the currently-selected handle without checking
whether it was selected.  It is actually not necessary to initialise
the variable this way, as the next use of get-magic on it will clobber
the cached value.

This initialisation was originally added in commit d8ce0c9a45.  The
bug it was fixing was probably caused by missing FETCH calls that are
no longer missing.
gv.c
t/op/magic.t