projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6ad8b4
)
st/mesa: Ensure dst in compile_instruction is initialized.
author
Vinson Lee
<vlee@freedesktop.org>
Thu, 2 Aug 2012 06:11:33 +0000
(23:11 -0700)
committer
Vinson Lee
<vlee@freedesktop.org>
Fri, 3 Aug 2012 04:10:49 +0000
(21:10 -0700)
Fixes uninitialized scalar variable defect reported by Coverity.
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/state_tracker/st_mesa_to_tgsi.c
patch
|
blob
|
history
diff --git
a/src/mesa/state_tracker/st_mesa_to_tgsi.c
b/src/mesa/state_tracker/st_mesa_to_tgsi.c
index 90af1b0098bb7d05dba2f62a84e04cfb1f6538b0..4d99b17ddfad08073b512192133accf6d0fe03a9 100644
(file)
--- 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;