[Mesa-dev] [PATCH 2/2] glsl: fix uninitialised variable from constructor

Dave Airlie airlied at gmail.com
Fri Nov 30 02:25:27 PST 2012


Coverity pointed out this uninitialised class member.

Signed-off-by: Dave Airlie <airlied at redhat.com>
---
 src/glsl/ir_function_detect_recursion.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/glsl/ir_function_detect_recursion.cpp b/src/glsl/ir_function_detect_recursion.cpp
index 0a5e647..4b39f97 100644
--- a/src/glsl/ir_function_detect_recursion.cpp
+++ b/src/glsl/ir_function_detect_recursion.cpp
@@ -173,6 +173,7 @@ public:
    has_recursion_visitor()
       : current(NULL)
    {
+      progress = false;
       this->mem_ctx = ralloc_context(NULL);
       this->function_hash = hash_table_ctor(0, hash_table_pointer_hash,
 					    hash_table_pointer_compare);
-- 
1.7.11.7



More information about the mesa-dev mailing list