[Libreoffice-commits] core.git: 2 commits - sc/source

Eike Rathke erack at redhat.com
Mon Jun 13 08:17:49 UTC 2016


 sc/source/core/data/dpobject.cxx |    2 +-
 sc/source/core/tool/interpr2.cxx |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 194cea28985867957783965bc19a31513b1d603e
Author: Eike Rathke <erack at redhat.com>
Date:   Mon Jun 13 10:14:16 2016 +0200

    coverity#1362685 Uninitialized scalar variable (UNINIT)
    
    Change-Id: I5da1a04d2fce6583fad0934d06dcba452181f256

diff --git a/sc/source/core/data/dpobject.cxx b/sc/source/core/data/dpobject.cxx
index 1d3b347..987572b 100644
--- a/sc/source/core/data/dpobject.cxx
+++ b/sc/source/core/data/dpobject.cxx
@@ -1885,7 +1885,7 @@ bool ScDPObject::ParseFilters(
                 {
                     // Parse possible number from aQueryValueName and format
                     // locale independent as aQueryValue.
-                    sal_uInt32 nNumFormat;
+                    sal_uInt32 nNumFormat = 0;
                     double fValue;
                     if (pFormatter->IsNumberFormat( aQueryValueName, nNumFormat, fValue))
                         aQueryValue = ScDPCache::GetLocaleIndependentFormattedString( fValue, *pFormatter, nNumFormat);
commit 1d4ad943ed1bd0c3a0e8ea9c6acd1a65427f8bb5
Author: Eike Rathke <erack at redhat.com>
Date:   Mon Jun 13 10:09:41 2016 +0200

    coverity#1362684 Uninitialized scalar variable (UNINIT)
    
    Change-Id: I19ba749ae4cca43602330834f155eca89638c711

diff --git a/sc/source/core/tool/interpr2.cxx b/sc/source/core/tool/interpr2.cxx
index 37594e2..86c1720 100644
--- a/sc/source/core/tool/interpr2.cxx
+++ b/sc/source/core/tool/interpr2.cxx
@@ -3360,7 +3360,7 @@ void ScInterpreter::ScGetPivotData()
 
                 // Parse possible number from MatchValueName and format
                 // locale independent as MatchValue.
-                sal_uInt32 nNumFormat;
+                sal_uInt32 nNumFormat = 0;
                 double fValue;
                 if (pFormatter->IsNumberFormat( aFilters[i].MatchValueName, nNumFormat, fValue))
                     aFilters[i].MatchValue = ScDPCache::GetLocaleIndependentFormattedString(


More information about the Libreoffice-commits mailing list