This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
regcomp.c: Rmv unnecessary branch
authorKarl Williamson <khw@cpan.org>
Wed, 13 Mar 2019 19:36:00 +0000 (13:36 -0600)
committerKarl Williamson <khw@cpan.org>
Wed, 13 Mar 2019 21:42:49 +0000 (15:42 -0600)
commitee2223a54bee07e3f5e8a63ce5bd71c29f9a2e85
treeccf67d0cf6e9b4d34b70fe45cc479701c0e8a15e
parent135226faaef3671e917c2e1d253e89a47c2b64f0
regcomp.c: Rmv unnecessary branch

The function memchr() seems to get inlined so it is very fast, and it's
legal to call it with a 0 length, so let it figure out that it's zero.
regcomp.c