From fe42702e88eec116ebabe558e36b8ed404fd20a2 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Sun, 4 Dec 2022 14:55:29 -0600 Subject: [PATCH] [ox/oc] Fix to iterate to next field of parent after reading array --- deps/ox/src/ox/oc/read.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deps/ox/src/ox/oc/read.hpp b/deps/ox/src/ox/oc/read.hpp index ffc4faed..e29cfe22 100644 --- a/deps/ox/src/ox/oc/read.hpp +++ b/deps/ox/src/ox/oc/read.hpp @@ -143,7 +143,7 @@ Error OrganicClawReader::field(const char *key, T *val) noexcept { const auto &srcVal = value(key); const auto srcSize = srcVal.size(); val->resize(srcSize); - return field(key, val->data(), val->size()); + err = field(key, val->data(), val->size()); } else if (targetValid()) { const auto &jv = value(key); if (jv.empty() || jv.isObject()) {