summaryrefslogtreecommitdiffstats
path: root/src/parser_json.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser_json.c')
-rw-r--r--src/parser_json.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/parser_json.c b/src/parser_json.c
index 01d42283..e8a175de 100644
--- a/src/parser_json.c
+++ b/src/parser_json.c
@@ -2965,7 +2965,7 @@ static struct cmd *json_parse_cmd_add_chain(struct json_ctx *ctx, json_t *root,
h.chain.name = xstrdup(h.chain.name);
if (comment) {
- chain = chain_alloc(NULL);
+ chain = chain_alloc();
handle_merge(&chain->handle, &h);
chain->comment = xstrdup(comment);
}
@@ -2978,7 +2978,7 @@ static struct cmd *json_parse_cmd_add_chain(struct json_ctx *ctx, json_t *root,
return cmd_alloc(op, obj, &h, int_loc, chain);
if (!chain)
- chain = chain_alloc(NULL);
+ chain = chain_alloc();
chain->flags |= CHAIN_F_BASECHAIN;
chain->type.str = xstrdup(type);