summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2013-03-22 17:04:15 +0100
committerMarek Olšák <[email protected]>2013-03-26 01:28:19 +0100
commit9cec5edea7ab45630186dff053fc66c0e96653a1 (patch)
tree3ed11e9a6f5377040c2e3db5d0b2fec2be3f28e0
parent17003b44b76f2442a8bd795c8a314146facef3e5 (diff)
gallium/tgsi: fix valgrind warning
"Conditional jump or move depends on uninitialised value(s)" Reviewed-by: Brian Paul <[email protected]>
-rw-r--r--src/gallium/auxiliary/tgsi/tgsi_text.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_text.c b/src/gallium/auxiliary/tgsi/tgsi_text.c
index 6b97bee8b0f..187e23ede26 100644
--- a/src/gallium/auxiliary/tgsi/tgsi_text.c
+++ b/src/gallium/auxiliary/tgsi/tgsi_text.c
@@ -1570,7 +1570,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;