From: Vinson Lee Date: Thu, 2 Aug 2012 06:11:33 +0000 (-0700) Subject: st/mesa: Ensure dst in compile_instruction is initialized. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=350f12fb657a2ac860796c179233fa357e4bf46c;p=mesa.git st/mesa: Ensure dst in compile_instruction is initialized. Fixes uninitialized scalar variable defect reported by Coverity. Signed-off-by: Vinson Lee Reviewed-by: Brian Paul --- diff --git a/src/mesa/state_tracker/st_mesa_to_tgsi.c b/src/mesa/state_tracker/st_mesa_to_tgsi.c index 90af1b0098b..4d99b17ddfa 100644 --- a/src/mesa/state_tracker/st_mesa_to_tgsi.c +++ b/src/mesa/state_tracker/st_mesa_to_tgsi.c @@ -680,7 +680,7 @@ compile_instruction( { struct ureg_program *ureg = t->ureg; GLuint i; - struct ureg_dst dst[1]; + struct ureg_dst dst[1] = { { 0 } }; struct ureg_src src[4]; unsigned num_dst; unsigned num_src;