[Bf-blender-cvs] [220fcd4] master: Fix uninitialized variable use

Campbell Barton noreply at git.blender.org
Fri Sep 5 03:01:11 CEST 2014


Commit: 220fcd43a9e48c3ca7be766433495a54d5471d71
Author: Campbell Barton
Date:   Fri Sep 5 10:58:44 2014 +1000
Branches: master
https://developer.blender.org/rB220fcd43a9e48c3ca7be766433495a54d5471d71

Fix uninitialized variable use

===================================================================

M	source/blender/editors/sculpt_paint/paint_image_proj.c

===================================================================

diff --git a/source/blender/editors/sculpt_paint/paint_image_proj.c b/source/blender/editors/sculpt_paint/paint_image_proj.c
index 40ac2e8..ab22b0a 100644
--- a/source/blender/editors/sculpt_paint/paint_image_proj.c
+++ b/source/blender/editors/sculpt_paint/paint_image_proj.c
@@ -2920,7 +2920,7 @@ static void project_paint_begin(ProjPaintState *ps)
 	MTFace *tf_base;
 
 	MTFace **tf_clone;
-	MTFace *tf_clone_base;
+	MTFace *tf_clone_base = NULL;
 
 	int a, i; /* generic looping vars */
 	int image_index = -1, face_index;




More information about the Bf-blender-cvs mailing list