From e80a2888bb8930b19f278700d29bc7a2d6cab5f5 Mon Sep 17 00:00:00 2001 From: Brian Date: Fri, 14 Mar 2008 14:15:55 -0600 Subject: [PATCH] init tmpNode to zeros --- src/mesa/shader/slang/slang_emit.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mesa/shader/slang/slang_emit.c b/src/mesa/shader/slang/slang_emit.c index 84c370dc0b9..9c307c6275b 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]) */ -- 2.30.2