Browse Source

fix error checking for \ at end of regex (this was broken previously)

rs-1.0
Rich Felker 14 years ago
parent
commit
952700e8c3
  1. 2
      src/regex/regcomp.c

2
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;

Loading…
Cancel
Save