From f8df73f41c5f4e461dc7de8cd3a7b32b04dfbf2e Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Thu, 23 May 2013 23:48:28 -0700 Subject: [PATCH] glsl linker: Initialize member variable interface_namespace. Fixes "Uninitialized pointer field" defect reported by Coverity. Signed-off-by: Vinson Lee Reviewed-by: Kenneth Graunke --- src/glsl/lower_named_interface_blocks.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) { } -- 2.30.2