[Mesa-dev] [PATCH] glsl: Initialize lower_vector_visitor::dont_lower_swz.

Vinson Lee vlee at freedesktop.org
Mon Sep 23 21:58:49 PDT 2013


Fixes "Uninitialized scalar field" defect reported by Coverity.

Signed-off-by: Vinson Lee <vlee at freedesktop.org>
---
 src/glsl/lower_vector.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/glsl/lower_vector.cpp b/src/glsl/lower_vector.cpp
index 9172b6a..a658410 100644
--- a/src/glsl/lower_vector.cpp
+++ b/src/glsl/lower_vector.cpp
@@ -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 */
    }
-- 
1.8.3.1



More information about the mesa-dev mailing list