summaryrefslogtreecommitdiff
path: root/regex.c
diff options
context:
space:
mode:
Diffstat (limited to 'regex.c')
-rw-r--r--regex.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/regex.c b/regex.c
index a7a158e1fd..071703ca0a 100644
--- a/regex.c
+++ b/regex.c
@@ -1633,7 +1633,7 @@ re_compile_pattern(pattern, size, bufp)
|| *laststart == start_paren
|| (*laststart == exactn
&& (laststart[1] == 1
- || laststart[1] == 2 && ismbchar(laststart[2])))
+ || (laststart[1] == 2 && ismbchar(laststart[2]))))
|| *laststart == duplicate))
{
/* Posix extended syntax is handled in previous
@@ -1958,9 +1958,6 @@ re_compile_pattern(pattern, size, bufp)
bufp->must = calculate_must_string(bufp->buffer, b);
FREE_AND_RETURN(stackb, 0);
- invalid_char:
- FREE_AND_RETURN(stackb, "invalid character in regular expression");
-
invalid_pattern:
FREE_AND_RETURN(stackb, "invalid regular expression");
@@ -2502,7 +2499,6 @@ re_search(bufp, string, size, startpos, range, regs)
{
register char *fastmap = bufp->fastmap;
int val, anchor = 0;
- int options = bufp->options;
/* Check for out-of-range starting position. */
if (startpos < 0 || startpos > size)