projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7142da6
)
glsl linker: Initialize member variable interface_namespace.
author
Vinson Lee
<vlee@freedesktop.org>
Fri, 24 May 2013 06:48:28 +0000
(23:48 -0700)
committer
Vinson Lee
<vlee@freedesktop.org>
Fri, 7 Jun 2013 05:55:24 +0000
(22:55 -0700)
Fixes "Uninitialized pointer field" defect reported by Coverity.
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/lower_named_interface_blocks.cpp
patch
|
blob
|
history
diff --git
a/src/glsl/lower_named_interface_blocks.cpp
b/src/glsl/lower_named_interface_blocks.cpp
index eba667a8bfeb7dd9d83393419452017d0ab5287f..922cc024f897156ba7efed97034eb127ebda431b 100644
(file)
--- a/
src/glsl/lower_named_interface_blocks.cpp
+++ b/
src/glsl/lower_named_interface_blocks.cpp
@@
-72,7
+72,8
@@
public:
hash_table *interface_namespace;
flatten_named_interface_blocks_declarations(void *mem_ctx)
- : mem_ctx(mem_ctx)
+ : mem_ctx(mem_ctx),
+ interface_namespace(NULL)
{
}