From 906670a7906a785210c872f637239bf4afa5b63d Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Fri, 30 Nov 2012 20:23:20 +1000 Subject: [PATCH] glsl: initialise killed_all field. coverity pointed out this field was being used uninitialised. Note: This is a candidate for stable branches. Reviewed-by: Brian Paul Signed-off-by: Dave Airlie --- 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 c5ae36b692c..a03811999a0 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; -- 2.30.2