[Piglit] [PATCH 1/4] glean/texrect: Initialize TexRectTest member variable.

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


Fixes uninitialized scalar field defect reported by Coverity.

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

diff --git a/tests/glean/ttexrect.h b/tests/glean/ttexrect.h
index 5e8675b..f305585 100644
--- a/tests/glean/ttexrect.h
+++ b/tests/glean/ttexrect.h
@@ -43,7 +43,8 @@ class TexRectTest: public BasicTest {
     public:
 	TexRectTest(const char* testName, const char* filter,
 		    const char *prereqs, const char* description):
-	    BasicTest(testName, filter, prereqs, description) {
+	    BasicTest(testName, filter, prereqs, description),
+	    mTolerance() {
 	}
 
 	virtual void runOne(BasicResult& r, Window& w);
-- 
1.8.0.2



More information about the Piglit mailing list