glsl: Initialize lower_vector_visitor::dont_lower_swz.
authorVinson Lee <vlee@freedesktop.org>
Tue, 24 Sep 2013 04:47:48 +0000 (21:47 -0700)
committerVinson Lee <vlee@freedesktop.org>
Wed, 25 Sep 2013 05:51:23 +0000 (22:51 -0700)
Fixes "Uninitialized scalar field" defect reported by Coverity.

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/lower_vector.cpp

index 9172b6af7b504b9401ef1848616a6739f50c23a6..a658410ae6fd20e0a894b35ad3658fb3db59faf3 100644 (file)
@@ -35,7 +35,7 @@ namespace {
 
 class lower_vector_visitor : public ir_rvalue_visitor {
 public:
-   lower_vector_visitor() : progress(false)
+   lower_vector_visitor() : dont_lower_swz(false), progress(false)
    {
       /* empty */
    }