Module: Mesa Branch: master Commit: 350f12fb657a2ac860796c179233fa357e4bf46c URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=350f12fb657a2ac860796c179233fa357e4bf46c
Author: Vinson Lee <[email protected]> Date: Wed Aug 1 23:11:33 2012 -0700 st/mesa: Ensure dst in compile_instruction is initialized. Fixes uninitialized scalar variable defect reported by Coverity. Signed-off-by: Vinson Lee <[email protected]> Reviewed-by: Brian Paul <[email protected]> --- src/mesa/state_tracker/st_mesa_to_tgsi.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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; _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
