From b681ed6ac970e061e9dbe7309bb69b3a947ae62d Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Tue, 5 Feb 2013 22:53:20 -0800 Subject: [PATCH] glsl: Initialize all tfeedback_candidate_generator member variables. Fixes uninitialized pointer field defect reported by Coverity. Signed-off-by: Vinson Lee Reviewed-by: Paul Berry --- src/glsl/link_varyings.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/glsl/link_varyings.cpp b/src/glsl/link_varyings.cpp index e2cb46e8ced..b1317c8322b 100644 --- a/src/glsl/link_varyings.cpp +++ b/src/glsl/link_varyings.cpp @@ -868,7 +868,9 @@ public: tfeedback_candidate_generator(void *mem_ctx, hash_table *tfeedback_candidates) : mem_ctx(mem_ctx), - tfeedback_candidates(tfeedback_candidates) + tfeedback_candidates(tfeedback_candidates), + toplevel_var(NULL), + varying_floats(0) { } -- 2.30.2