From 9e1550dbafe1b28b81dc15822762e6cfe53e3a4b Mon Sep 17 00:00:00 2001 From: Marcin Slusarz Date: Sun, 24 Jan 2010 19:27:59 +0100 Subject: [PATCH] nv50: fix uninitialized variable in nv50_revdep_reorder "unsafe" is never initialized, but used (found by valgrind) --- src/gallium/drivers/nv50/nv50_program.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/nv50/nv50_program.c b/src/gallium/drivers/nv50/nv50_program.c index cd2fd0a..e74a526 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; -- 2.7.4