Fixes uninitialized pointer field defect reported by Coverity.

Signed-off-by: Vinson Lee <v...@freedesktop.org>
---
 src/glsl/link_varyings.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/glsl/link_varyings.cpp b/src/glsl/link_varyings.cpp
index e2cb46e..b1317c8 100644
--- a/src/glsl/link_varyings.cpp
+++ b/src/glsl/link_varyings.cpp
@@ -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)
    {
    }
 
-- 
1.8.1

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to