From: Vinson Lee Date: Wed, 6 Feb 2013 06:53:20 +0000 (-0800) Subject: glsl: Initialize all tfeedback_candidate_generator member variables. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b681ed6ac970e061e9dbe7309bb69b3a947ae62d;p=mesa.git 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 --- 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) { }