summaryrefslogtreecommitdiffhomepage
path: root/loader/vobj.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'loader/vobj.cpp')
-rw-r--r--loader/vobj.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/loader/vobj.cpp b/loader/vobj.cpp
index d437df69..010cc642 100644
--- a/loader/vobj.cpp
+++ b/loader/vobj.cpp
@@ -36,6 +36,7 @@ void adl_serializer<vobj>::to_json(json& j, const vobj& val)
void adl_serializer<vobj>::from_json(const json& j, vobj& val)
{
+ val = {};
val.name = j["name"];
if (j.contains("description"))
val.descr = j["description"];