summaryrefslogtreecommitdiffstats
path: root/src/glsl
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2012-04-30 00:57:56 -0700
committerVinson Lee <[email protected]>2012-04-30 22:28:05 -0700
commit2d75a1e25e6ddcd65964d30fc3c782df2e880cc4 (patch)
tree18a4b34b35759adfb53705e18d85c7253f736f70 /src/glsl
parent7bf3fe851c9ac45f0c297d05b5272c3b312109d7 (diff)
glsl: Initialize member variable in ir_copy_propagation_elements_visitor.
Fix uninitialized scalar field defect reported by Coverity. Signed-off-by: Vinson Lee <[email protected]> Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/glsl')
-rw-r--r--src/glsl/opt_copy_propagation_elements.cpp1
1 files changed, 1 insertions, 0 deletions
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;