Fix uninitialized stack use in rna diff override
authorCampbell Barton <ideasman42@gmail.com>
Thu, 4 Jan 2018 05:15:31 +0000 (16:15 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 4 Jan 2018 05:15:31 +0000 (16:15 +1100)
source/blender/makesrna/intern/rna_access.c

index da84f51cea247e2ef184a5e318a8ebadfe5e0476..6197ecb3ee544fdaf67c828ed7daf4656e1d7198 100644 (file)
@@ -7147,7 +7147,7 @@ static int rna_property_override_diff(
                return 0;
        }
 
-       bool override_changed;
+       bool override_changed = false;
        int diff_flags = flags;
        if ((RNA_property_flag(prop_a) & PROP_OVERRIDABLE_STATIC) == 0) {
                diff_flags &= ~RNA_OVERRIDE_COMPARE_CREATE;