[ox/oc] Fix to iterate to next field of parent after reading array
This commit is contained in:
parent
ea7ccf40b1
commit
fe42702e88
2
deps/ox/src/ox/oc/read.hpp
vendored
2
deps/ox/src/ox/oc/read.hpp
vendored
@ -143,7 +143,7 @@ Error OrganicClawReader::field(const char *key, T *val) noexcept {
|
|||||||
const auto &srcVal = value(key);
|
const auto &srcVal = value(key);
|
||||||
const auto srcSize = srcVal.size();
|
const auto srcSize = srcVal.size();
|
||||||
val->resize(srcSize);
|
val->resize(srcSize);
|
||||||
return field(key, val->data(), val->size());
|
err = field(key, val->data(), val->size());
|
||||||
} else if (targetValid()) {
|
} else if (targetValid()) {
|
||||||
const auto &jv = value(key);
|
const auto &jv = value(key);
|
||||||
if (jv.empty() || jv.isObject()) {
|
if (jv.empty() || jv.isObject()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user