This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Fix for Coverity perl5 CID 28936: Wrong operator used (CONSTANT_EXPRESSION_RESULT)
authorJarkko Hietaniemi <jhi@iki.fi>
Fri, 25 Apr 2014 12:25:52 +0000 (08:25 -0400)
committerSteffen Mueller <smueller@cpan.org>
Wed, 28 May 2014 17:27:21 +0000 (19:27 +0200)
commita482c76f48270e80f77784f6a08d244af9b26d7e
treea0798e7ff0a1a6f56b89f9eef708ccb7201a6fb1
parent9b56a01971980348bbaf5753e47fcb59dee1ef49
Fix for Coverity perl5 CID 28936: Wrong operator used (CONSTANT_EXPRESSION_RESULT)

operator_confusion: ret->flags | 0x10 is always 1/true regardless of
the values of its operand. This occurs as the logical first operand of '&&'.
Did you intend to use '&' rather than '|'?

(confirmed by Karl Williamson)
regcomp.c