diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-06-19 05:23:50 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-06-19 05:23:50 +0400 |
commit | f31bae0aabe47b928a8c77020a798e815ed8b70f (patch) | |
tree | 64a8a32a77651738d9861747abe8b4f6f5fc2102 /source/blender/nodes | |
parent | 31093223cde693eda9c499b9dc2fb0f182d91dc5 (diff) |
fixed possible use of uninitialized variable.
Diffstat (limited to 'source/blender/nodes')
-rw-r--r-- | source/blender/nodes/intern/SHD_nodes/SHD_material.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/nodes/intern/SHD_nodes/SHD_material.c b/source/blender/nodes/intern/SHD_nodes/SHD_material.c index f66df9bba90..4e1b53e2026 100644 --- a/source/blender/nodes/intern/SHD_nodes/SHD_material.c +++ b/source/blender/nodes/intern/SHD_nodes/SHD_material.c @@ -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 |