From: Brian Paul Date: Fri, 16 Oct 2015 20:31:22 +0000 (-0600) Subject: tgsi: initialize ctx.file in tgsi_dump_instruction() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2023906667cf349284cd3d3921dc1dcbb7506014;p=mesa.git tgsi: initialize ctx.file in tgsi_dump_instruction() Fixes segfault because of uninitialized file pointer. Trivial. --- diff --git a/src/gallium/auxiliary/tgsi/tgsi_dump.c b/src/gallium/auxiliary/tgsi/tgsi_dump.c index 8ceb5b47584..5d80cca5b0e 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_dump.c +++ b/src/gallium/auxiliary/tgsi/tgsi_dump.c @@ -648,6 +648,7 @@ tgsi_dump_instruction( ctx.indent = 0; ctx.dump_printf = dump_ctx_printf; ctx.indentation = 0; + ctx.file = NULL; iter_instruction( &ctx.iter, (struct tgsi_full_instruction *)inst ); }