diff options
| author | Rich Felker <dalias@aerifal.cx> | 2012-05-13 17:16:10 -0400 | 
|---|---|---|
| committer | Rich Felker <dalias@aerifal.cx> | 2012-05-13 17:16:10 -0400 | 
| commit | e9cddc8e32b34f17c84d02fb52c11dfa4a3927f7 (patch) | |
| tree | 5d47cd2b4b2af1f3be06333766c26bf3613c3e12 /src | |
| parent | 9a7fac7934975338449b63eb4d0409b472251dfa (diff) | |
| download | musl-e9cddc8e32b34f17c84d02fb52c11dfa4a3927f7.tar.gz | |
another BRE fix: in ^*, * is literal
i don't understand why this has to be conditional on being in BRE
mode, but enabling this code unconditionally breaks a huge number of
ERE test cases.
Diffstat (limited to 'src')
| -rw-r--r-- | src/regex/regcomp.c | 2 | 
1 files changed, 2 insertions, 0 deletions
| diff --git a/src/regex/regcomp.c b/src/regex/regcomp.c index ea6e6a69..712ca80d 100644 --- a/src/regex/regcomp.c +++ b/src/regex/regcomp.c @@ -1353,6 +1353,8 @@ tre_parse(tre_parse_ctx_t *ctx)  	      if (ctx->cflags & REG_EXTENDED  		  || ctx->re == ctx->re_start)  		{ +		  if (!(ctx->cflags & REG_EXTENDED)) +		    STACK_PUSHX(stack, int, PARSE_CATENATION);  		  result = tre_ast_new_literal(ctx->mem, ASSERTION,  					       ASSERT_AT_BOL, -1);  		  if (result == NULL) | 
