[Libreoffice-commits] .: svl/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Mon Nov 19 04:36:39 PST 2012


 svl/source/numbers/zforlist.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 760ef2ef7457aad9486a12a7f21da2b298749bf1
Author: Michael Stahl <mstahl at redhat.com>
Date:   Mon Nov 19 13:33:45 2012 +0100

    SvNumberFormatter: warning C4701 pot. uninitialized variable nCheckPos used
    
    Change-Id: I497d7ddc90bdfed9cd49e0b0c988a74f733bfa36

diff --git a/svl/source/numbers/zforlist.cxx b/svl/source/numbers/zforlist.cxx
index ae02773..f609417 100644
--- a/svl/source/numbers/zforlist.cxx
+++ b/svl/source/numbers/zforlist.cxx
@@ -422,7 +422,7 @@ void SvNumberFormatter::ReplaceSystemCL( LanguageType eOldLanguage )
         ChangeIntl( eOldLanguage );
         LanguageType eLge = eOldLanguage;   // ConvertMode changes this
         bool bCheck = false;
-        xub_StrLen nCheckPos;
+        xub_StrLen nCheckPos = 0;
         SvNumberformat* pNewEntry = new SvNumberformat( aString, pFormatScanner,
                                                         pStringScanner, nCheckPos, eLge );
         if ( nCheckPos != 0 )


More information about the Libreoffice-commits mailing list