[Mesa-dev] [PATCH] gallium/tgsi: fix valgrind warning
Marek Olšák
maraeo at gmail.com
Fri Mar 22 14:29:34 PDT 2013
"Conditional jump or move depends on uninitialised value(s)"
---
src/gallium/auxiliary/tgsi/tgsi_text.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/auxiliary/tgsi/tgsi_text.c b/src/gallium/auxiliary/tgsi/tgsi_text.c
index 5abcb45..78534d9 100644
--- a/src/gallium/auxiliary/tgsi/tgsi_text.c
+++ b/src/gallium/auxiliary/tgsi/tgsi_text.c
@@ -1580,7 +1580,7 @@ tgsi_text_translate(
struct tgsi_token *tokens,
uint num_tokens )
{
- struct translate_ctx ctx;
+ struct translate_ctx ctx = {0};
ctx.text = text;
ctx.cur = text;
--
1.7.10.4
More information about the mesa-dev
mailing list