[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [37627] trunk/blender/source/blender/nodes /intern/SHD_nodes/SHD_material.c: fixed possible use of uninitialized variable.

Campbell Barton ideasman42 at gmail.com
Sun Jun 19 03:23:52 CEST 2011


Revision: 37627
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=37627
Author:   campbellbarton
Date:     2011-06-19 01:23:50 +0000 (Sun, 19 Jun 2011)
Log Message:
-----------
fixed possible use of uninitialized variable.

Modified Paths:
--------------
    trunk/blender/source/blender/nodes/intern/SHD_nodes/SHD_material.c

Modified: trunk/blender/source/blender/nodes/intern/SHD_nodes/SHD_material.c
===================================================================
--- trunk/blender/source/blender/nodes/intern/SHD_nodes/SHD_material.c	2011-06-18 23:22:55 UTC (rev 37626)
+++ trunk/blender/source/blender/nodes/intern/SHD_nodes/SHD_material.c	2011-06-19 01:23:50 UTC (rev 37627)
@@ -86,7 +86,7 @@
 		ShaderCallData *shcd= data;
 		float col[4];
 		bNodeSocket *sock;
-		char hasinput[NUM_MAT_IN];
+		char hasinput[NUM_MAT_IN]= {'\0'};
 		int i;
 		
 		/* note: cannot use the in[]->hasinput flags directly, as these are not necessarily




More information about the Bf-blender-cvs mailing list