[Piglit] [PATCH] glean/texunits: Initialize TexUnitsTest member variables.

Vinson Lee vlee at freedesktop.org
Mon Dec 17 23:28:15 PST 2012


Fixes uninitialized scalar field defect reported by Coverity.

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

diff --git a/tests/glean/ttexunits.h b/tests/glean/ttexunits.h
index 436f857..6997960 100644
--- a/tests/glean/ttexunits.h
+++ b/tests/glean/ttexunits.h
@@ -42,7 +42,11 @@ class TexUnitsTest: public MultiTest
 public:
 	TexUnitsTest(const char* testName, const char* filter,
                  const char *extensions, const char* description):
-		MultiTest(testName, filter, extensions, description)
+		MultiTest(testName, filter, extensions, description),
+		maxCombinedUnits(0),
+		maxImageUnits(0),
+		maxCoordUnits(0),
+		maxUnits(0)
 	{
 	}
 
-- 
1.8.0.2



More information about the Piglit mailing list