This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
regcomp.c: Don't set variable within an 'if'
authorKarl Williamson <khw@cpan.org>
Wed, 31 May 2017 19:44:20 +0000 (13:44 -0600)
committerKarl Williamson <khw@cpan.org>
Thu, 1 Jun 2017 13:05:16 +0000 (07:05 -0600)
commit9b5d391f84ebc32466959f6f8f90891b3930c4b9
tree50f60de74743a828e124906ed0ac523441ea969a
parente613617cd28e5ec6a6555339c1300e9fbdbde425
regcomp.c: Don't set variable within an 'if'

Sometimes it is convenient/and or necessary to do an assignment within a
clause of an 'if', but it adds a little cognitive load.  In this case,
it's entirely unnecessary.  This patch changes to do the assignment
before the 'if'.
regcomp.c