projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a3b1757
)
tgsi: initialize ctx.file in tgsi_dump_instruction()
author
Brian Paul
<brianp@vmware.com>
Fri, 16 Oct 2015 20:31:22 +0000
(14:31 -0600)
committer
Brian Paul
<brianp@vmware.com>
Fri, 16 Oct 2015 20:32:09 +0000
(14:32 -0600)
Fixes segfault because of uninitialized file pointer.
Trivial.
src/gallium/auxiliary/tgsi/tgsi_dump.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/tgsi/tgsi_dump.c
b/src/gallium/auxiliary/tgsi/tgsi_dump.c
index 8ceb5b475843ce8c849607a7299c792011567075..5d80cca5b0e31120fe468a057ccc5c0bd5991f63 100644
(file)
--- 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 );
}