commit | 60ba071aace3d512131149f10f1fbf7ec284eb7a | [log] [tgz] |
---|---|---|
author | lilinchao <chenguopingdota@163.com> | Tue Jul 02 20:28:30 2019 +0800 |
committer | Jordan Bayles <jophba@chromium.org> | Tue Jul 09 16:16:00 2019 -0700 |
tree | 36d2c4f29c38eb9f7cea85dd841b02f023ebf7b2 | |
parent | 3c32dca89214c03b107cc9d1c468000cff3f8127 [diff] |
pop the root node after readValue()
diff --git a/src/lib_json/json_reader.cpp b/src/lib_json/json_reader.cpp index 53b0b2e..005ab26 100644 --- a/src/lib_json/json_reader.cpp +++ b/src/lib_json/json_reader.cpp
@@ -1048,6 +1048,7 @@ nodes_.push(&root); bool successful = readValue(); + nodes_.pop(); Token token; skipCommentTokens(token); if (features_.failIfExtra_) {