From 23898b76180b3bbcc7e482492f2af0c59e3efe12 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 11 Feb 2024 15:22:32 -0500 Subject: Handle empty cords correctly --- parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'parse.c') diff --git a/parse.c b/parse.c index d7d8ff74..c24cd071 100644 --- a/parse.c +++ b/parse.c @@ -910,7 +910,7 @@ PARSER(parse_string) { } ast_list_t *chunks = NULL; - CORD chunk = NULL; + CORD chunk = CORD_EMPTY; const char *chunk_start = pos; for (; pos < ctx->file->text + ctx->file->len && *pos != close_quote; ++pos) { if (*pos == start_interp) { -- cgit v1.2.3