[PATCH] coverity#989730 and coverity#989729: Uninitialized scalar fi...

Marc-André Laverdière (via_Code_Review) gerrit at gerrit.libreoffice.org
Fri Mar 8 16:48:23 PST 2013


Hi,

I have submitted a patch for review:

    https://gerrit.libreoffice.org/2607

To pull it, you can do:

    git pull ssh://gerrit.libreoffice.org:29418/core refs/changes/07/2607/1

coverity#989730 and coverity#989729: Uninitialized scalar field

Change-Id: Iaecfa720b898746d457de731734b332226d3e9c2
---
M unoidl/source/reg2unoidl.cxx
1 file changed, 2 insertions(+), 2 deletions(-)



diff --git a/unoidl/source/reg2unoidl.cxx b/unoidl/source/reg2unoidl.cxx
index 730d42e..0f0b53e 100644
--- a/unoidl/source/reg2unoidl.cxx
+++ b/unoidl/source/reg2unoidl.cxx
@@ -248,7 +248,7 @@
 
 struct Item {
     explicit Item(rtl::Reference< unoidl::Entity > const & theEntity):
-        entity(theEntity)
+        entity(theEntity),nameOffset(0),dataOffset(0)
     {}
 
     rtl::Reference< unoidl::Entity > entity;
@@ -258,7 +258,7 @@
 
 struct ConstItem {
     explicit ConstItem(unoidl::ConstantValue const & theConstant):
-        constant(theConstant)
+        constant(theConstant),nameOffset(0),dataOffset(0)
     {}
 
     unoidl::ConstantValue constant;

-- 
To view, visit https://gerrit.libreoffice.org/2607
To unsubscribe, visit https://gerrit.libreoffice.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Iaecfa720b898746d457de731734b332226d3e9c2
Gerrit-PatchSet: 1
Gerrit-Project: core
Gerrit-Branch: master
Gerrit-Owner: Marc-André Laverdière <marc-andre at atc.tcs.com>



More information about the LibreOffice mailing list