fix for using uninitialized value in gpu_shader_material
[blender.git] / source / blender / nodes / intern / SHD_nodes / SHD_material.c
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