projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a5a4778
)
fix copy and paste error in regex code causing mishandling of \) in BRE
author
Rich Felker
<dalias@aerifal.cx>
Mon, 7 May 2012 21:50:32 +0000
(17:50 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Mon, 7 May 2012 21:50:32 +0000
(17:50 -0400)
src/regex/regcomp.c
patch
|
blob
|
history
diff --git
a/src/regex/regcomp.c
b/src/regex/regcomp.c
index 5f119d172e535a5ca8d6b0289ac1391e9913d045..c72f7d635fe04d6937446dba64722b23a55aac59 100644
(file)
--- a/
src/regex/regcomp.c
+++ b/
src/regex/regcomp.c
@@
-1186,7
+1186,7
@@
tre_parse(tre_parse_ctx_t *ctx)
ctx->re++;
goto lparen;
}
- if (!(ctx->cflags & REG_EXTENDED) && *(ctx->re + 1) == CHAR_
L
PAREN)
+ if (!(ctx->cflags & REG_EXTENDED) && *(ctx->re + 1) == CHAR_
R
PAREN)
{
goto empty_atom;
}