[PATCH] coverity#1000855 Unitialized scalar variable

Norbert Thiebaud (via Code Review) gerrit at gerrit.libreoffice.org
Mon May 13 16:04:45 PDT 2013


Hi,

I have submitted a patch for review:

    https://gerrit.libreoffice.org/3896

To pull it, you can do:

    git pull ssh://gerrit.libreoffice.org:29418/core refs/changes/96/3896/1

coverity#1000855 Unitialized scalar variable

Change-Id: I2bece68ed33f3aa193a30d9686ba81d21c7ec55e
---
M sc/source/core/tool/stringutil.cxx
1 file changed, 1 insertion(+), 0 deletions(-)



diff --git a/sc/source/core/tool/stringutil.cxx b/sc/source/core/tool/stringutil.cxx
index ac2ec76..fcaae9d 100644
--- a/sc/source/core/tool/stringutil.cxx
+++ b/sc/source/core/tool/stringutil.cxx
@@ -341,6 +341,7 @@
     aRet.mnFormatType = 0;
     aRet.meType = ScInputStringType::Unknown;
     aRet.maText = rStr;
+    aRet.mfValue = 0.0;
 
     if (rStr.getLength() > 1 && rStr[0] == '=')
     {

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I2bece68ed33f3aa193a30d9686ba81d21c7ec55e
Gerrit-PatchSet: 1
Gerrit-Project: core
Gerrit-Branch: master
Gerrit-Owner: Norbert Thiebaud <nthiebaud at gmail.com>



More information about the LibreOffice mailing list