aboutsummaryrefslogtreecommitdiff
path: root/parse.c
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2019-02-26 21:14:34 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2019-02-26 21:14:34 +0100
commit20b1ec5f84f0292845fb8b276300057a4646f17d (patch)
tree5f9099ebecd1b6c1f19efe552fd5f61525a4d37f /parse.c
parentStrbuf remove init_1, add strbuf_load. (diff)
downloadcalp-20b1ec5f84f0292845fb8b276300057a4646f17d.tar.gz
calp-20b1ec5f84f0292845fb8b276300057a4646f17d.tar.xz
Made filename attribute of all objects.
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;