From: Brian Paul Date: Fri, 14 Mar 2008 20:14:13 +0000 (-0600) Subject: mesa: init tmpNode to zeros X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a9aef5fccd0a71bc29845c5af9aacdab5e2234ea;p=mesa.git mesa: init tmpNode to zeros --- diff --git a/src/mesa/shader/slang/slang_emit.c b/src/mesa/shader/slang/slang_emit.c index 3763b567055..382b13ff056 100644 --- a/src/mesa/shader/slang/slang_emit.c +++ b/src/mesa/shader/slang/slang_emit.c @@ -727,6 +727,7 @@ emit_clamp(slang_emit_info *emitInfo, slang_ir_node *n) * dest for this clamp() is an output reg, we can't use that reg for * the intermediate result. Use a temp register instead. */ + _mesa_bzero(&tmpNode, sizeof(tmpNode)); alloc_temp_storage(emitInfo, &tmpNode, n->Store->Size); /* tmp = max(ch[0], ch[1]) */