[Piglit] [PATCH] util: Initialize Mersenne member variables.
Vinson Lee
vlee at freedesktop.org
Sat Dec 15 01:14:48 PST 2012
Fixes uninitialized scalar field defects reported by Coverity.
Signed-off-by: Vinson Lee <vlee at freedesktop.org>
---
tests/util/mersenne.hpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tests/util/mersenne.hpp b/tests/util/mersenne.hpp
index 0f39e13..3e311fc 100644
--- a/tests/util/mersenne.hpp
+++ b/tests/util/mersenne.hpp
@@ -48,7 +48,8 @@ public:
static const uint32_t rand_max = 0xFFFFFFFF;
public:
- Mersenne()
+ Mersenne() :
+ mSeed(0), mIndex(0), mState()
{
}
--
1.8.0.1
More information about the Piglit
mailing list