about summary refs log tree commit diff
path: root/src/regex/regexec.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-04-07 23:13:47 -0400
committerRich Felker <dalias@aerifal.cx>2011-04-07 23:13:47 -0400
commit74f75541ffb73181edcc0d7e4efcc4325242e1d9 (patch)
treeb4a72662faffc7612e4317aa055ae9a46e29dcf3 /src/regex/regexec.c
parentcb8dff2149c393c94c2abbef186c564829b97e93 (diff)
downloadmusl-74f75541ffb73181edcc0d7e4efcc4325242e1d9.tar.gz
musl-74f75541ffb73181edcc0d7e4efcc4325242e1d9.tar.xz
musl-74f75541ffb73181edcc0d7e4efcc4325242e1d9.zip
fix bug in TRE found by clang (typo && instead of &)
Diffstat (limited to 'src/regex/regexec.c')
-rw-r--r--src/regex/regexec.c2
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));