[Mesa-dev] [PATCH 1/2] glsl: initialise killed_all field.

Dave Airlie airlied at gmail.com
Fri Nov 30 02:25:26 PST 2012


coverity pointed out this field was being used uninitialised.

Signed-off-by: Dave Airlie <airlied at redhat.com>
---
 src/glsl/opt_constant_propagation.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/glsl/opt_constant_propagation.cpp b/src/glsl/opt_constant_propagation.cpp
index c5ae36b..a038119 100644
--- a/src/glsl/opt_constant_propagation.cpp
+++ b/src/glsl/opt_constant_propagation.cpp
@@ -92,6 +92,7 @@ public:
    ir_constant_propagation_visitor()
    {
       progress = false;
+      killed_all = false;
       mem_ctx = ralloc_context(0);
       this->acp = new(mem_ctx) exec_list;
       this->kills = new(mem_ctx) exec_list;
-- 
1.7.11.7



More information about the mesa-dev mailing list