projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix various bugs in path and error handling in execvp/fexecve
[musl]
/
src
/
regex
/
regcomp.c
diff --git
a/src/regex/regcomp.c
b/src/regex/regcomp.c
index
3307942
..
875f56f
100644
(file)
--- a/
src/regex/regcomp.c
+++ b/
src/regex/regcomp.c
@@
-3115,7
+3115,7
@@
tre_compile(regex_t *preg, const tre_char_t *regex, size_t n, int cflags)
errcode = tre_parse(&parse_ctx);
if (errcode != REG_OK)
ERROR_EXIT(errcode);
- preg->re_nsub = parse_ctx.submatch_id - 1;
+ preg->re_nsub = p
reg->__nsub2 = p
arse_ctx.submatch_id - 1;
tree = parse_ctx.result;
#ifdef TRE_DEBUG