pp_sys.c: Remove redundant null checks
authorFather Chrysostomos <sprout@cpan.org>
Tue, 24 Dec 2013 06:08:26 +0000 (22:08 -0800)
committerFather Chrysostomos <sprout@cpan.org>
Tue, 24 Dec 2013 06:42:24 +0000 (22:42 -0800)
commit8a6c0fcb27512d17f0e5121f3c83d1a1a72c6f6b
treed416eb6c6b32ce5db3a37f172340932365bcfb61
parent88af3b939957082fabb95c8d884bc32149f871cd
pp_sys.c: Remove redundant null checks

Nulls only get pushed on to the stack when pp_coreargs uses them to
represent missing optional arguments.  Ops that take * prototypes
will have had their arguments passed through rv2gv first, so they
should always be GVs.  GvIOn never returns null.  When given a GV
argument, it creates a new IO entry and returns that.  When given
any other argument it croaks.

Thank you to Daniel Dragan for providing a list of candidate pp
functions in <rt-4.0.18-29609-1387862001-129.120842-15-0@perl.org>
(ticket #120842).
pp_sys.c