[Mesa-dev] [PATCH] glsl: Fix uninitialized member in ir_array_splitting_visitor.

Vinson Lee vlee at freedesktop.org
Tue Apr 17 23:49:02 PDT 2012


Fix uninitialized pointer field defect reported by Coverity.

Signed-off-by: Vinson Lee <vlee at 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



More information about the mesa-dev mailing list