From: Vinson Lee Date: Fri, 24 May 2013 06:48:28 +0000 (-0700) Subject: glsl linker: Initialize member variable interface_namespace. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f8df73f41c5f4e461dc7de8cd3a7b32b04dfbf2e;p=mesa.git glsl linker: Initialize member variable interface_namespace. Fixes "Uninitialized pointer field" defect reported by Coverity. Signed-off-by: Vinson Lee Reviewed-by: Kenneth Graunke --- 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) { }