glsl linker: Initialize member variable interface_namespace.
authorVinson Lee <vlee@freedesktop.org>
Fri, 24 May 2013 06:48:28 +0000 (23:48 -0700)
committerVinson 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

index eba667a8bfeb7dd9d83393419452017d0ab5287f..922cc024f897156ba7efed97034eb127ebda431b 100644 (file)
@@ -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)
    {
    }