[Libreoffice-commits] .: sc/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Wed Nov 28 06:04:06 PST 2012


 sc/source/core/tool/ddelink.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 79bc947773f5c083f5245a81b9e54117add9fa88
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Wed Nov 28 15:03:38 2012 +0100

    warning C4701: potentially uninitialized local variable 'fVal' used
    
    Change-Id: I412ab50b7c6e7cf6e32a42fb92cdbab513f42dce

diff --git a/sc/source/core/tool/ddelink.cxx b/sc/source/core/tool/ddelink.cxx
index 0a431ae..4a14ccf 100644
--- a/sc/source/core/tool/ddelink.cxx
+++ b/sc/source/core/tool/ddelink.cxx
@@ -192,7 +192,7 @@ sfx2::SvBaseLink::UpdateResult ScDdeLink::DataChanged(
             {
                 aEntry = aLine.GetToken( (xub_StrLen) nC, '\t' );
                 sal_uInt32 nIndex = nStdFormat;
-                double fVal;
+                double fVal = double();
                 if ( nMode != SC_DDE_TEXT && pFormatter->IsNumberFormat( aEntry, nIndex, fVal ) )
                     pResult->PutDouble( fVal, nC, nR );
                 else if (aEntry.Len() == 0)


More information about the Libreoffice-commits mailing list