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

Vinson Lee vlee at freedesktop.org
Sat Dec 1 10:07:49 PST 2012


Fixes uninitialized scalar field defect reported by Coverity.

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

diff --git a/tests/general/triangle-rasterization.cpp b/tests/general/triangle-rasterization.cpp
index 5dc0256..9964742 100644
--- a/tests/general/triangle-rasterization.cpp
+++ b/tests/general/triangle-rasterization.cpp
@@ -46,6 +46,7 @@
 struct Vector
 {
 	Vector()
+		: x(0), y(0)
 	{
 	}
 
-- 
1.8.0.1



More information about the Piglit mailing list