[PATCH] WaE: tolerance.elementName & tolerance.attribName may be used uninitialized

David Ostrovsky David.Ostrovsky at gmx.de
Sat Apr 28 10:15:24 PDT 2012


---
 test/inc/test/xmldiff.hxx |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/test/inc/test/xmldiff.hxx b/test/inc/test/xmldiff.hxx
index c092637..6c7026a 100644
--- a/test/inc/test/xmldiff.hxx
+++ b/test/inc/test/xmldiff.hxx
@@ -43,7 +43,11 @@ struct tolerance
         xmlFree(attribName);
     }
 
-    tolerance() {}
+    tolerance() 
+    {
+        elementName = NULL;
+        attribName = NULL;
+    }
 
     tolerance(const tolerance& tol)
     {
-- 
1.7.5.4


--------------080807080308050104030509--


More information about the LibreOffice mailing list