commit | 3db69687c6a173d4c86fdf3136e3d56d061ba942 | [log] [tgz] |
---|---|---|
author | Michal Vasko <mvasko@cesnet.cz> | Tue Mar 27 16:11:31 2018 +0200 |
committer | Michal Vasko <mvasko@cesnet.cz> | Tue Mar 27 16:11:31 2018 +0200 |
tree | f5890b7dfb9ea7e1ba982d7f0c2e95f711d19a36 | |
parent | 2535cbc0ab70ffa92262f56b70055ebeb231ed1b [diff] [blame] |
printers CHANGE try to print all values Even unresolved unions. The printed value will be wrong only in extremely rare cases. Fixes sysrepo/sysrepo#1069
diff --git a/src/printer_json.c b/src/printer_json.c index 4b13918..5b726a2 100644 --- a/src/printer_json.c +++ b/src/printer_json.c
@@ -173,6 +173,7 @@ case LY_TYPE_INST: case LY_TYPE_INT64: case LY_TYPE_UINT64: + case LY_TYPE_UNION: case LY_TYPE_DEC64: json_print_string(out, leaf->value_str); break;