aboutsummaryrefslogtreecommitdiff
path: root/parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/parse.c b/parse.c
index 035781ea..97e63305 100644
--- a/parse.c
+++ b/parse.c
@@ -198,7 +198,9 @@ int handle_kv (
ERR_P(ctx, "Expected END:%s, got END:%s.\n%s line",
expected_key->mem,
CLINE_CUR_VAL(cline)->mem,
- PEEK(LLIST(vcomponent))(&ctx->comp_stack)->filename);
+ vcomponent_get_val(
+ PEEK(LLIST(vcomponent))(&ctx->comp_stack),
+ "X-HH-FILENAME"));
PUSH(LLIST(strbuf))(&ctx->key_stack, expected_key);
return -1;