From: Marek Olšák Date: Fri, 22 Mar 2013 16:04:15 +0000 (+0100) Subject: gallium/tgsi: fix valgrind warning X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9cec5edea7ab45630186dff053fc66c0e96653a1;p=mesa.git gallium/tgsi: fix valgrind warning "Conditional jump or move depends on uninitialised value(s)" Reviewed-by: Brian Paul --- 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;