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>2011-02-22 15:19:27 +0300
committerCampbell Barton <ideasman42@gmail.com>2011-02-22 15:19:27 +0300
commit99d3b68d70b204f4a73dba67eec8077c3dd7fa15 (patch)
treed406d77cd6c7bdb96adffb7083827f58e7445d63
parent8089f857ad4d80bd12824f6fe4e753545be60745 (diff)
fix for uninitialized stack variable in displaying the modifier template.
-rw-r--r--source/blender/blenkernel/intern/modifier.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/modifier.c b/source/blender/blenkernel/intern/modifier.c
index db0c649d290..7439a47a746 100644
--- a/source/blender/blenkernel/intern/modifier.c
+++ b/source/blender/blenkernel/intern/modifier.c
@@ -247,6 +247,11 @@ int modifiers_getCageIndex(struct Scene *scene, Object *ob, int *lastPossibleCag
ModifierData *md = (virtual_)? modifiers_getVirtualModifierList(ob): ob->modifiers.first;
int i, cageIndex = -1;
+ if(lastPossibleCageIndex_r) {
+ /* ensure the value is initialized */
+ *lastPossibleCageIndex_r= -1;
+ }
+
/* Find the last modifier acting on the cage. */
for (i=0; md; i++,md=md->next) {
ModifierTypeInfo *mti = modifierType_getInfo(md->type);