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-Tag: accepted/2.0alpha-wayland/20121114.171706~821 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=350f12fb657a2ac860796c179233fa357e4bf46c;p=profile%2Fivi%2Fmesa.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 90af1b0..4d99b17 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;