summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarcin Slusarz <marcin.slusarz@gmail.com>2010-01-24 19:27:59 +0100
committerBen Skeggs <bskeggs@redhat.com>2010-01-25 09:45:23 +1000
commit9e1550dbafe1b28b81dc15822762e6cfe53e3a4b (patch)
tree9e2e3e32af2c91d16b41cd7f617d3909c5f2afbc /src
parent0ef781c1ae04451ac4f184187e900f872cad5f94 (diff)
nv50: fix uninitialized variable in nv50_revdep_reorder
"unsafe" is never initialized, but used (found by valgrind)
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/nv50/nv50_program.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/nv50/nv50_program.c b/src/gallium/drivers/nv50/nv50_program.c
index cd2fd0a076..e74a526c62 100644
--- a/src/gallium/drivers/nv50/nv50_program.c
+++ b/src/gallium/drivers/nv50/nv50_program.c
@@ -3283,7 +3283,7 @@ prep_inspect_insn(struct nv50_pc *pc, const struct tgsi_full_instruction *insn)
static unsigned
nv50_revdep_reorder(unsigned m[4], unsigned rdep[4])
{
- unsigned i, c, x, unsafe;
+ unsigned i, c, x, unsafe = 0;
for (c = 0; c < 4; c++)
m[c] = c;