Fix uninitialized variable when computing graph hash with sub-resources

This commit is contained in:
Marc Gilleron 2022-07-03 03:25:24 +01:00
parent 723ddfc958
commit 0bf9a9f87f

View File

@ -1830,7 +1830,7 @@ static uint64_t get_deep_hash(const Object &obj,
if ((property.usage & property_usage) != 0) {
const Variant value = obj.get(property.name);
uint64_t value_hash;
uint64_t value_hash = 0;
if (value.get_type() == Variant::OBJECT) {
const Object *obj_value = value.operator Object *();