[Mesa-dev] [PATCH] glsl: Initialize member variable in ir_copy_propagation_elements_visitor.
Vinson Lee
vlee at freedesktop.org
Mon Apr 30 01:00:40 PDT 2012
Fix uninitialized scalar field defect reported by Coverity.
Signed-off-by: Vinson Lee <vlee at freedesktop.org>
---
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 314db4e..11d9d7b 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;
--
1.7.9.4
More information about the mesa-dev
mailing list