glsl: Initialize all tfeedback_candidate_generator member variables.
authorVinson Lee <vlee@freedesktop.org>
Wed, 6 Feb 2013 06:53:20 +0000 (22:53 -0800)
committerVinson Lee <vlee@freedesktop.org>
Fri, 8 Feb 2013 05:51:20 +0000 (21:51 -0800)
Fixes uninitialized pointer field defect reported by Coverity.

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
src/glsl/link_varyings.cpp

index e2cb46e8ced039f850b901d8325f54ac772f7e26..b1317c8322be7e39c0101b4a2a696f9a1375805b 100644 (file)
@@ -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)
    {
    }