fix for using uninitialized value in gpu_shader_material
authorCampbell Barton <ideasman42@gmail.com>
Sat, 9 Jul 2011 19:16:32 +0000 (19:16 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sat, 9 Jul 2011 19:16:32 +0000 (19:16 +0000)
intern/ghost/test/CMakeLists.txt
source/blender/nodes/intern/SHD_nodes/SHD_material.c

index a012f6af61cd5739f77fd6af97d3f502879bf451..f834b55b387ff17f747bcb6986af40480d76a6d2 100644 (file)
@@ -82,8 +82,6 @@ add_library(bli_lib
                "../../../source/blender/blenlib/intern/BLI_memarena.c"
                )
 
-message(STATUS "EEEk ${SRC_NEW}")
-
 
 find_package(OpenGL REQUIRED)
 
index 4e1b53e20266a019b648dfa4a7aefdd16c868e45..f78dd9ec7275ac99d95cd894d4f9731c3d80cd8a 100644 (file)
@@ -226,7 +226,7 @@ static int gpu_shader_material(GPUMaterial *mat, bNode *node, GPUNodeStack *in,
                GPUShadeInput shi;
                GPUShadeResult shr;
                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