diff options
author | Marek Olšák <[email protected]> | 2013-03-22 17:04:15 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2013-03-26 03:23:59 +0100 |
commit | 980f84c392e9e8f45078cace2e2640d7b3ea00c2 (patch) | |
tree | c06b9cb03ae57aebafea84755d99a033528dc4ef /src | |
parent | ff27e18834a917265aa042c26679468ce2e89aa0 (diff) |
gallium/tgsi: fix valgrind warning
"Conditional jump or move depends on uninitialised value(s)"
Reviewed-by: Brian Paul <[email protected]>
(cherry picked from commit 9cec5edea7ab45630186dff053fc66c0e96653a1)
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/auxiliary/tgsi/tgsi_text.c | 2 |
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 1267e79edb7..dc3a5fb0c5f 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_text.c +++ b/src/gallium/auxiliary/tgsi/tgsi_text.c @@ -1569,7 +1569,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; |