This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
pp_pack.c: Remove needless branch
authorKarl Williamson <khw@cpan.org>
Sat, 11 Feb 2017 20:02:46 +0000 (13:02 -0700)
committerKarl Williamson <khw@cpan.org>
Sun, 12 Feb 2017 04:11:13 +0000 (21:11 -0700)
commitdf3377142c0886d6a189c225c7ceb29f6c3da6f2
tree9003a32e9d84cc839246ef474759ab800bd48b89
parent05fefba96af5488952719c6f57af518afba9170a
pp_pack.c: Remove needless branch

This function only sets *retlen to 0 if the input length is 0.  In all
but one case, the function was not called with with that input.  In that
one case, I changed to avoid calling the function with that input.
Hence we can remove checking *retlen for 0.
pp_pack.c