summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2013-09-23 22:02:27 -0700
committerVinson Lee <[email protected]>2013-09-24 22:16:39 -0700
commit74b02b8e3fd946db7bd3e1ebee86b5079b674c93 (patch)
treeba6e1501a13160291f5ebf439aa65cdd249f1141
parent6128c226b43b059ca490a2513d1511a3134826fe (diff)
glsl: Initialize assignment_generator member variables.
Fixes "Uninitialized pointer field" defect reported by Coverity. Signed-off-by: Vinson Lee <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
-rw-r--r--src/glsl/lower_variable_index_to_cond_assign.cpp6
1 files changed, 6 insertions, 0 deletions
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)
{
}