]> granicus.if.org Git - icinga2/commitdiff
another small adjustment by the way just to ensure the object on stack ist the same...
authorElias Ohm <eohm@novomind.com>
Wed, 1 May 2019 10:09:24 +0000 (12:09 +0200)
committerMichael Friedrich <michael.friedrich@icinga.com>
Thu, 16 May 2019 14:31:09 +0000 (16:31 +0200)
(cherry picked from commit cdd843a998bfaa5028369a3fd6d5368bdc6ee568)

lib/base/serializer.cpp

index b6ba1d51eb021d733169598f719f579b2e8f5595..7b2c84445bca5a5ec83f943906e01a2735ddd7c4 100644 (file)
@@ -159,7 +159,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();
        }