From: Dave Airlie Date: Fri, 30 Nov 2012 10:23:20 +0000 (+1000) Subject: glsl: initialise killed_all field. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=906670a7906a785210c872f637239bf4afa5b63d;p=mesa.git 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 --- 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;