fixed possible use of uninitialized variable.
authorCampbell Barton <ideasman42@gmail.com>
Sun, 19 Jun 2011 01:23:50 +0000 (01:23 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sun, 19 Jun 2011 01:23:50 +0000 (01:23 +0000)
source/blender/nodes/intern/SHD_nodes/SHD_material.c

index f66df9bba90adf119e2f7ed0a920326bdf4c47c3..4e1b53e20266a019b648dfa4a7aefdd16c868e45 100644 (file)
@@ -86,7 +86,7 @@ static void node_shader_exec_material(void *data, bNode *node, bNodeStack **in,
                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