gallium/tgsi: fix valgrind warning

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

Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
Marek Olšák 2013-03-22 17:04:15 +01:00
parent 17003b44b7
commit 9cec5edea7

View file

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