aboutsummaryrefslogtreecommitdiff
path: root/parse.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-02-11 15:22:32 -0500
committerBruce Hill <bruce@bruce-hill.com>2024-02-11 15:22:32 -0500
commit23898b76180b3bbcc7e482492f2af0c59e3efe12 (patch)
treec11bb074860ef382c6500916b9181ac5fd2da082 /parse.c
parentc6e7f7259670e680fb9604e7642d317b1d263956 (diff)
Handle empty cords correctly
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c2
1 files changed, 1 insertions, 1 deletions
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) {