This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
pp_sys.c: Remove null checks from pp_sockpair
authorFather Chrysostomos <sprout@cpan.org>
Tue, 24 Dec 2013 04:37:18 +0000 (20:37 -0800)
committerFather Chrysostomos <sprout@cpan.org>
Tue, 24 Dec 2013 04:37:18 +0000 (20:37 -0800)
commit49561e08a01a67f5fd863f1978b62a9b241d66b6
tree724418cf4c67f02f45896554cc2053d821aaa103
parent36b1c95c174efe412ba8229cef144b7351e5af27
pp_sys.c: Remove null checks from pp_sockpair

There is actually no way for nulls to reach this code.

Nulls on the stack only happen with pp_coreargs, and only with
ops that have optional arguments, of which socketpair is not one.

GvIOn uses gv_add_by_type, which adds a new IO if there is not
already one, so it will never return null if the GV is not null.
pp_sys.c