From 74f75541ffb73181edcc0d7e4efcc4325242e1d9 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Thu, 7 Apr 2011 23:13:47 -0400 Subject: [PATCH] fix bug in TRE found by clang (typo && instead of &) --- src/regex/regexec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- 2.25.1