Fix uninitialized pointer field defect reported by Coverity.

Signed-off-by: Vinson Lee <v...@freedesktop.org>
---
 src/glsl/opt_array_splitting.cpp |    1 +
 1 file changed, 1 insertion(+)

diff --git a/src/glsl/opt_array_splitting.cpp b/src/glsl/opt_array_splitting.cpp
index f11b516..99b6a22 100644
--- a/src/glsl/opt_array_splitting.cpp
+++ b/src/glsl/opt_array_splitting.cpp
@@ -223,6 +223,7 @@ public:
    ir_array_splitting_visitor(exec_list *vars)
    {
       this->variable_list = vars;
+      this->mem_ctx = NULL;
    }
 
    virtual ~ir_array_splitting_visitor()
-- 
1.7.9.4

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

Reply via email to