[Piglit] [PATCH] triangle-rasterization-overdraw: Initialize Vector member variables.

Vinson Lee vlee at freedesktop.org
Tue Dec 4 22:37:32 PST 2012


Fixes uninitialized scalar field defect reported by Coverity.

Signed-off-by: Vinson Lee <vlee at freedesktop.org>
---
 tests/general/triangle-rasterization-overdraw.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/general/triangle-rasterization-overdraw.cpp b/tests/general/triangle-rasterization-overdraw.cpp
index 58b6774..c2e5673 100644
--- a/tests/general/triangle-rasterization-overdraw.cpp
+++ b/tests/general/triangle-rasterization-overdraw.cpp
@@ -52,6 +52,7 @@
 struct Vector
 {
 	Vector()
+		: x(0), y(0)
 	{
 	}
 
-- 
1.8.0.1



More information about the Piglit mailing list