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 bc682e92..412f5cf2 100644
--- a/src/parser_json.c
+++ b/src/parser_json.c
@@ -3399,7 +3399,7 @@ int nft_parse_json_buffer(struct nft_ctx *nft, const char *buf,
ret = __json_parse(&ctx);
- if (!nft->output.echo) {
+ if (!nft_output_echo(&nft->output)) {
json_decref(nft->json_root);
nft->json_root = NULL;
}
@@ -3427,7 +3427,7 @@ int nft_parse_json_filename(struct nft_ctx *nft, const char *filename,
ret = __json_parse(&ctx);
- if (!nft->output.echo) {
+ if (!nft_output_echo(&nft->output)) {
json_decref(nft->json_root);
nft->json_root = NULL;
}