commit | 0f6bf3e471d175a6a88440591c8d7b7362aa3842 | [log] [tgz] |
---|---|---|
author | aPiecek <piecek@cesnet.cz> | Wed Aug 25 15:47:49 2021 +0200 |
committer | Michal Vasko <mvasko@cesnet.cz> | Thu Aug 26 10:32:21 2021 +0200 |
tree | 801ee5b645822cd9dc9fd57a1ddba11fb468a686 | |
parent | 29865227536e111dd1e8c1866520932109df8c05 [diff] |
printer json REFACTOR of dynamic flag ... because the plugin must set the flag.
diff --git a/src/printer_json.c b/src/printer_json.c index 40c9d05..dea32d3 100644 --- a/src/printer_json.c +++ b/src/printer_json.c
@@ -332,7 +332,7 @@ static LY_ERR json_print_value(struct jsonpr_ctx *ctx, const struct lyd_value *val) { - ly_bool dynamic = 0; + ly_bool dynamic; const char *value = val->realtype->plugin->print(ctx->ctx, val, LY_VALUE_JSON, NULL, &dynamic, NULL); /* leafref is not supported */