tgsi: initialize ctx.file in tgsi_dump_instruction()
Fixes segfault because of uninitialized file pointer. Trivial.
This commit is contained in:
@@ -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 );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user