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:
1736148
)
fix error checking for \ at end of regex (this was broken previously)
author
Rich Felker
<dalias@aerifal.cx>
Mon, 7 May 2012 21:55:13 +0000
(17:55 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Mon, 7 May 2012 21:55:13 +0000
(17:55 -0400)
src/regex/regcomp.c
patch
|
blob
|
history
diff --git
a/src/regex/regcomp.c
b/src/regex/regcomp.c
index c72f7d635fe04d6937446dba64722b23a55aac59..ea6e6a6942ab7a7d9af5871153b1f8003233cfe6 100644
(file)
--- a/
src/regex/regcomp.c
+++ b/
src/regex/regcomp.c
@@
-1210,7
+1210,7
@@
tre_parse(tre_parse_ctx_t *ctx)
}
}
- if (!
*ctx->re
)
+ if (!
ctx->re[1]
)
/* Trailing backslash. */
return REG_EESCAPE;