diff options
author | Bastien Montagne <bastien@blender.org> | 2020-10-13 21:36:38 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2020-10-13 21:38:04 +0300 |
commit | a36f02f9ba9877a12dc5b453a348d01cd89f46c0 (patch) | |
tree | 08f73c25e5d90ad85f0e5c23f5069a1d92205e90 /source/blender/makesrna | |
parent | 72cfeb2c4ee38eb53b805ac775b5809b1df65660 (diff) |
Fix (unreported) LibOverride: possible uninitialized return variable.
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r-- | source/blender/makesrna/intern/rna_access_compare_override.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_access_compare_override.c b/source/blender/makesrna/intern/rna_access_compare_override.c index 098854513a4..202864a7d82 100644 --- a/source/blender/makesrna/intern/rna_access_compare_override.c +++ b/source/blender/makesrna/intern/rna_access_compare_override.c @@ -1160,6 +1160,10 @@ IDOverrideLibraryProperty *RNA_property_override_property_get(Main *bmain, ID *id; char *rna_path; + if (r_created != NULL) { + *r_created = false; + } + if ((rna_path = rna_property_override_property_real_id_owner(bmain, ptr, prop, &id)) != NULL) { IDOverrideLibraryProperty *op = BKE_lib_override_library_property_get( id->override_library, rna_path, r_created); @@ -1198,6 +1202,10 @@ IDOverrideLibraryPropertyOperation *RNA_property_override_property_operation_get bool *r_strict, bool *r_created) { + if (r_created != NULL) { + *r_created = false; + } + IDOverrideLibraryProperty *op = RNA_property_override_property_get(bmain, ptr, prop, NULL); if (!op) { |