summaryrefslogtreecommitdiffstats
path: root/src/glsl
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2013-05-23 23:48:28 -0700
committerVinson Lee <[email protected]>2013-06-06 22:55:24 -0700
commitf8df73f41c5f4e461dc7de8cd3a7b32b04dfbf2e (patch)
treeb1e1d74955e2089bfd69dca3f1d192777cd916ef /src/glsl
parent7142da6dd1b12f203a7daaa7d79235da8b5bc721 (diff)
glsl linker: Initialize member variable interface_namespace.
Fixes "Uninitialized pointer field" defect reported by Coverity. Signed-off-by: Vinson Lee <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/glsl')
-rw-r--r--src/glsl/lower_named_interface_blocks.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/glsl/lower_named_interface_blocks.cpp b/src/glsl/lower_named_interface_blocks.cpp
index eba667a8bfe..922cc024f89 100644
--- 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)
{
}