glsl: Initialize assignment_generator member variables.
authorVinson Lee <vlee@freedesktop.org>
Tue, 24 Sep 2013 05:02:27 +0000 (22:02 -0700)
committerVinson Lee <vlee@freedesktop.org>
Wed, 25 Sep 2013 05:16:39 +0000 (22:16 -0700)
Fixes "Uninitialized pointer field" defect reported by Coverity.

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/lower_variable_index_to_cond_assign.cpp

index 21674b5f8fb2f76e2d2d7598c5327293cee390c3..699fb390340b50bc40aed9862ed8cdb97777a1b6 100644 (file)
@@ -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)
    {
    }