forked from bartvdbraak/blender
fix for possible use of uninitialized variable in pastebuf_match_path_property()
wasn't checking if RNA_path_resolve() succeeded.
This commit is contained in:
parent
9c8721e1a1
commit
96dbc60e2d
@ -628,9 +628,8 @@ static tAnimCopybufItem *pastebuf_match_path_property(FCurve *fcu, const short f
|
||||
PropertyRNA *prop;
|
||||
|
||||
RNA_id_pointer_create(aci->id, &id_ptr);
|
||||
RNA_path_resolve(&id_ptr, aci->rna_path, &rptr, &prop);
|
||||
|
||||
if (prop) {
|
||||
|
||||
if (RNA_path_resolve(&id_ptr, aci->rna_path, &rptr, &prop) && prop) {
|
||||
const char *identifier = RNA_property_identifier(prop);
|
||||
int len_id = strlen(identifier);
|
||||
int len_path = strlen(fcu->rna_path);
|
||||
|
Loading…
Reference in New Issue
Block a user