From: Vinson Lee Date: Tue, 24 Sep 2013 05:02:27 +0000 (-0700) Subject: glsl: Initialize assignment_generator member variables. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=74b02b8e3fd946db7bd3e1ebee86b5079b674c93;p=mesa.git glsl: Initialize assignment_generator member variables. Fixes "Uninitialized pointer field" defect reported by Coverity. Signed-off-by: Vinson Lee Reviewed-by: Kenneth Graunke --- diff --git a/src/glsl/lower_variable_index_to_cond_assign.cpp b/src/glsl/lower_variable_index_to_cond_assign.cpp index 21674b5f8fb..699fb390340 100644 --- a/src/glsl/lower_variable_index_to_cond_assign.cpp +++ b/src/glsl/lower_variable_index_to_cond_assign.cpp @@ -192,6 +192,12 @@ struct assignment_generator ir_variable* var; assignment_generator() + : base_ir(NULL), + rvalue(NULL), + old_index(NULL), + is_write(false), + write_mask(0), + var(NULL) { }