diff options
author | Rich Felker <dalias@aerifal.cx> | 2011-04-07 23:13:47 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2011-04-07 23:13:47 -0400 |
commit | 74f75541ffb73181edcc0d7e4efcc4325242e1d9 (patch) | |
tree | b4a72662faffc7612e4317aa055ae9a46e29dcf3 | |
parent | cb8dff2149c393c94c2abbef186c564829b97e93 (diff) | |
download | musl-74f75541ffb73181edcc0d7e4efcc4325242e1d9.tar.gz |
fix bug in TRE found by clang (typo && instead of &)
-rw-r--r-- | src/regex/regexec.c | 2 |
1 files changed, 1 insertions, 1 deletions
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)); |