glsl: fix uninitialised variable from constructor
authorDave Airlie <airlied@gmail.com>
Fri, 30 Nov 2012 10:24:33 +0000 (20:24 +1000)
committerAndreas Boll <andreas.boll.dev@gmail.com>
Sun, 20 Jan 2013 14:08:28 +0000 (15:08 +0100)
Coverity pointed out this uninitialised class member.

Note: This is a candidate for stable branches.

Reviewed-by: Brian Paul <brianp@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
(cherry picked from commit f3476ec8fa5a94d469a12318c537b13ce9cc5a45)

src/glsl/ir_function_detect_recursion.cpp

index 0a5e647..4b39f97 100644 (file)
@@ -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);