add missing IN6_ARE_ADDR_EQUAL
[musl] / src / regex / regcomp.c
index 5f119d1..ea6e6a6 100644 (file)
@@ -1186,7 +1186,7 @@ tre_parse(tre_parse_ctx_t *ctx)
                  ctx->re++;
                  goto lparen;
                }
-             if (!(ctx->cflags & REG_EXTENDED) && *(ctx->re + 1) == CHAR_LPAREN)
+             if (!(ctx->cflags & REG_EXTENDED) && *(ctx->re + 1) == CHAR_RPAREN)
                {
                  goto empty_atom;
                }
@@ -1210,7 +1210,7 @@ tre_parse(tre_parse_ctx_t *ctx)
                  }
              }
 
-             if (!*ctx->re)
+             if (!ctx->re[1])
                /* Trailing backslash. */
                return REG_EESCAPE;