summaryrefslogtreecommitdiff
path: root/view/sharedcache/core/DSCView.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'view/sharedcache/core/DSCView.cpp')
-rw-r--r--view/sharedcache/core/DSCView.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/view/sharedcache/core/DSCView.cpp b/view/sharedcache/core/DSCView.cpp
index 3eb40b7e..06a73a69 100644
--- a/view/sharedcache/core/DSCView.cpp
+++ b/view/sharedcache/core/DSCView.cpp
@@ -629,6 +629,8 @@ bool DSCView::Init()
ss.str(data);
rapidjson::Document result(rapidjson::kObjectType);
+ result.Parse(data.c_str());
+
if (result.HasMember("metadataVersion"))
{
if (result["metadataVersion"].GetInt() != METADATA_VERSION)
@@ -643,8 +645,6 @@ bool DSCView::Init()
LogError("Shared cache metadata version not found");
return false;
}
-
- result.Parse(data.c_str());
for (auto& imgV : result["regionsMappedIntoMemory"].GetArray())
{
SharedCacheCore::MemoryRegion region;