diff options
author | Vinson Lee <[email protected]> | 2012-08-01 23:11:33 -0700 |
---|---|---|
committer | Vinson Lee <[email protected]> | 2012-08-02 21:10:49 -0700 |
commit | 350f12fb657a2ac860796c179233fa357e4bf46c (patch) | |
tree | 95e4731b697db38c5ed60b5a71460a23c7726f4a /src/mesa | |
parent | f6ad8b45c2731075d91f43e92862847f2c26e95a (diff) |
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]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | 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 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; |