This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
regcomp.c: Don't prematurely skip error checking
authorKarl Williamson <khw@cpan.org>
Mon, 1 Sep 2014 20:57:49 +0000 (14:57 -0600)
committerKarl Williamson <khw@cpan.org>
Sun, 7 Sep 2014 03:12:05 +0000 (21:12 -0600)
commitd9218970031244a06745934121df17f0c84fe27a
tree7bde26e60ea1f01346f3228d670a61aa9ef3f5e8
parent3f9090cb7f77e45487c80fa744f544030eb60222
regcomp.c: Don't prematurely skip error checking

The assertion in the comment changed by this commit was true only for
pass1 of the regex compilation; not pass2.  This makes it true in both
passes by moving it, and the code it was about past some error checking.
This error checking was executed in pass1, but not pass2.  It also
changes the warning to only be done in the second pass, part of
[perl #122671].  A future commit will fix the others
regcomp.c