added code to handle an empty regular expression in sed
This commit is contained in:
@ -1539,8 +1539,7 @@ parse_brace:
|
||||
/* Escaped character. */
|
||||
DPRINT(("tre_parse: escaped: '%.*" STRF "'\n",
|
||||
REST(ctx->re - 1)));
|
||||
result = tre_ast_new_literal(ctx->mem, *ctx->re, *ctx->re,
|
||||
ctx->position);
|
||||
result = tre_ast_new_literal(ctx->mem, *ctx->re, *ctx->re, ctx->position);
|
||||
ctx->position++;
|
||||
ctx->re++;
|
||||
}
|
||||
|
Reference in New Issue
Block a user