Mesa (master): st/mesa: Ensure dst in compile_instruction is initialized.
Vinson Lee
vlee at kemper.freedesktop.org
Fri Aug 3 04:11:35 UTC 2012
Module: Mesa
Branch: master
Commit: 350f12fb657a2ac860796c179233fa357e4bf46c
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=350f12fb657a2ac860796c179233fa357e4bf46c
Author: Vinson Lee <vlee at freedesktop.org>
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 <vlee at freedesktop.org>
Reviewed-by: Brian Paul <brianp at vmware.com>
---
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;
More information about the mesa-commit
mailing list