[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [58659] trunk/blender/source/blender/ editors/animation/keyframes_general.c: fix for possible use of uninitialized variable in pastebuf_match_path_property ()
Campbell Barton
ideasman42 at gmail.com
Sat Jul 27 11:38:34 CEST 2013
Revision: 58659
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=58659
Author: campbellbarton
Date: 2013-07-27 09:38:34 +0000 (Sat, 27 Jul 2013)
Log Message:
-----------
fix for possible use of uninitialized variable in pastebuf_match_path_property()
wasn't checking if RNA_path_resolve() succeeded.
Modified Paths:
--------------
trunk/blender/source/blender/editors/animation/keyframes_general.c
Modified: trunk/blender/source/blender/editors/animation/keyframes_general.c
===================================================================
--- trunk/blender/source/blender/editors/animation/keyframes_general.c 2013-07-27 09:26:22 UTC (rev 58658)
+++ trunk/blender/source/blender/editors/animation/keyframes_general.c 2013-07-27 09:38:34 UTC (rev 58659)
@@ -628,9 +628,8 @@
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);
More information about the Bf-blender-cvs
mailing list