[Piglit] [PATCH 6/6] glean/api2: Initialize API2Test member variable.

Vinson Lee vlee at freedesktop.org
Tue Jan 1 16:50:02 PST 2013


Fixes uninitialized scalar field defect reported by Coverity.

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

diff --git a/tests/glean/tapi2.h b/tests/glean/tapi2.h
index 132d565..6e84fd5 100644
--- a/tests/glean/tapi2.h
+++ b/tests/glean/tapi2.h
@@ -44,7 +44,8 @@ class API2Test: public MultiTest
 public:
 	API2Test(const char* testName, const char* filter,
                  const char *extensions, const char* description):
-		MultiTest(testName, filter, extensions, description)
+		MultiTest(testName, filter, extensions, description),
+		tolerance()
 	{
 	}
 
-- 
1.8.0.2



More information about the Piglit mailing list