]> granicus.if.org Git - icinga2/commitdiff
another small adjustment by the way just to ensure the object on stack ist the same... 7154/head
authorElias Ohm <eohm@novomind.com>
Wed, 1 May 2019 10:09:24 +0000 (12:09 +0200)
committerElias Ohm <eohm@novomind.com>
Wed, 1 May 2019 10:09:24 +0000 (12:09 +0200)
lib/base/serializer.cpp

index 1b692d599ad10d6469166463dd481e0d87ea9172..c081c440d76f73bcde5e3db4ed1c7f80008ed871 100644 (file)
@@ -142,7 +142,7 @@ static Object::Ptr SerializeObject(const Object::Ptr& input, int attributeTypes,
 
                Value value = input->GetField(i);
                stack.Push(field.Name, value);
-               fields.emplace_back(field.Name, SerializeInternal(input->GetField(i), attributeTypes, stack));
+               fields.emplace_back(field.Name, SerializeInternal(value, attributeTypes, stack));
                stack.Pop();
        }