[Piglit] [PATCH 3/6] glean/glsl1: Initialized GLSLTest member variables.

Vinson Lee vlee at freedesktop.org
Tue Jan 1 16:49:59 PST 2013


Fixes uninitialized scalar field defect reported by Coverity.

Signed-off-by: Vinson Lee <vlee at freedesktop.org>
---
 tests/glean/tglsl1.h | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/tests/glean/tglsl1.h b/tests/glean/tglsl1.h
index 34c1d23..57cf66d 100644
--- a/tests/glean/tglsl1.h
+++ b/tests/glean/tglsl1.h
@@ -57,7 +57,11 @@ class GLSLTest: public MultiTest
 public:
 	GLSLTest(const char* testName, const char* filter,
                  const char *extensions, const char* description):
-		MultiTest(testName, filter, extensions, description)
+		MultiTest(testName, filter, extensions, description),
+		tolerance(),
+		looseTolerance(),
+		glsl_120(false),
+		glsl_130(false)
 	{
 		testOne = true;  // test with just one surface config
 	}
-- 
1.8.0.2



More information about the Piglit mailing list