Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2013-07-27 13:38:34 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-07-27 13:38:34 +0400
commit96dbc60e2db35c38603052f004dd914e1d97051f (patch)
tree8c2b8b2e710d435c96c98491ed356e5aa6c5d9d4
parent9c8721e1a14cc3b48ece136ae2be94d329f5b0d1 (diff)
fix for possible use of uninitialized variable in pastebuf_match_path_property()
wasn't checking if RNA_path_resolve() succeeded.
-rw-r--r--source/blender/editors/animation/keyframes_general.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source/blender/editors/animation/keyframes_general.c b/source/blender/editors/animation/keyframes_general.c
index 2cb2f6683ef..915cf409dcf 100644
--- a/source/blender/editors/animation/keyframes_general.c
+++ b/source/blender/editors/animation/keyframes_general.c
@@ -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);