commit | 33cbf425cc7c181ccdba9c6569b477af63e6aa8d | [log] [tgz] |
---|---|---|
author | Michal Vasko <mvasko@cesnet.cz> | Thu Sep 13 15:18:15 2018 +0200 |
committer | Michal Vasko <mvasko@cesnet.cz> | Thu Sep 13 15:18:15 2018 +0200 |
tree | 8b85bb1adeb4a5b8f24905039e55943ccdfbd871 | |
parent | 8f874f6f0f0eee759ddc939302e7bc21a3c00a1e [diff] [blame] |
json parser BUGFIX wrong leaf move in data Fixes #614
diff --git a/src/parser_json.c b/src/parser_json.c index 7666ca8..bc9b352 100644 --- a/src/parser_json.c +++ b/src/parser_json.c
@@ -1059,7 +1059,8 @@ if (!r) { goto error; } - while (result->next) { + /* only for leaf-list */ + while (result->next && (result->next->schema == result->schema)) { result = result->next; }