From 06b44f99610ea64a86dda2e3e5da9a98c4a495d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Tue, 18 Feb 2014 12:32:52 +0000 Subject: [PATCH] coverity#738915 Uninitialized scalar field Change-Id: I1ac675441b50ceab7df78fb9646e4e1bd8e6e36e --- test/source/diff/diff.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/source/diff/diff.cxx b/test/source/diff/diff.cxx index 567ec804d448..bb460f788930 100644 --- a/test/source/diff/diff.cxx +++ b/test/source/diff/diff.cxx @@ -38,9 +38,11 @@ struct tolerance } tolerance() + : elementName(NULL) + , attribName(NULL) + , relative(false) + , value(0.0) { - elementName = NULL; - attribName = NULL; } tolerance(const tolerance& tol)