gallium/tgsi: fix valgrind warning

"Conditional jump or move depends on uninitialised value(s)"

Reviewed-by: Brian Paul <brianp@vmware.com>
(cherry picked from commit 9cec5edea7)
This commit is contained in:
Marek Olšák 2013-03-22 17:04:15 +01:00
parent ff27e18834
commit 980f84c392

View file

@ -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;