From 74b02b8e3fd946db7bd3e1ebee86b5079b674c93 Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Mon, 23 Sep 2013 22:02:27 -0700 Subject: glsl: Initialize assignment_generator member variables. Fixes "Uninitialized pointer field" defect reported by Coverity. Signed-off-by: Vinson Lee Reviewed-by: Kenneth Graunke --- src/glsl/lower_variable_index_to_cond_assign.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/glsl') 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) { } -- cgit v1.2.3