From: Rich Felker Date: Fri, 8 Apr 2011 03:13:47 +0000 (-0400) Subject: fix bug in TRE found by clang (typo && instead of &) X-Git-Tag: v0.7.8~36 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=74f75541ffb73181edcc0d7e4efcc4325242e1d9;p=oweals%2Fmusl.git fix bug in TRE found by clang (typo && instead of &) --- diff --git a/src/regex/regexec.c b/src/regex/regexec.c index 0c3d2834..f7aef506 100644 --- a/src/regex/regexec.c +++ b/src/regex/regexec.c @@ -917,7 +917,7 @@ tre_tnfa_run_backtrack(const tre_tnfa_t *tnfa, const void *string, if (stack->prev) { DPRINT((" backtracking\n")); - if (stack->item.state->assertions && ASSERT_BACKREF) + if (stack->item.state->assertions & ASSERT_BACKREF) { DPRINT((" states_seen[%d] = 0\n", stack->item.state_id));