[Piglit] [PATCH 2/4] glean/texenv: Initialize TexEnvTest member variable.

Vinson Lee vlee at freedesktop.org
Wed Dec 19 23:15:16 PST 2012


Fixes uninitialized scalar field defect reported by Coverity.

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

diff --git a/tests/glean/ttexenv.h b/tests/glean/ttexenv.h
index 6cf1f1e..2e50d22 100644
--- a/tests/glean/ttexenv.h
+++ b/tests/glean/ttexenv.h
@@ -42,7 +42,8 @@ class TexEnvTest: public BasicTest {
     public:
 	TexEnvTest(const char* testName, const char* filter,
 		       const char* description):
-	    BasicTest(testName, filter, description) {
+	    BasicTest(testName, filter, description),
+	    mTolerance() {
 	}
 
 	virtual void runOne(BasicResult& r, Window& w);
-- 
1.8.0.2



More information about the Piglit mailing list