From 2d75a1e25e6ddcd65964d30fc3c782df2e880cc4 Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Mon, 30 Apr 2012 00:57:56 -0700 Subject: [PATCH] glsl: Initialize member variable in ir_copy_propagation_elements_visitor. Fix uninitialized scalar field defect reported by Coverity. Signed-off-by: Vinson Lee Reviewed-by: Eric Anholt --- src/glsl/opt_copy_propagation_elements.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/glsl/opt_copy_propagation_elements.cpp b/src/glsl/opt_copy_propagation_elements.cpp index 314db4e187f..11d9d7baf72 100644 --- a/src/glsl/opt_copy_propagation_elements.cpp +++ b/src/glsl/opt_copy_propagation_elements.cpp @@ -93,6 +93,7 @@ public: ir_copy_propagation_elements_visitor() { this->progress = false; + this->killed_all = false; this->mem_ctx = ralloc_context(NULL); this->shader_mem_ctx = NULL; this->acp = new(mem_ctx) exec_list; -- 2.30.2