[Libreoffice-commits] core.git: sw/source

Tor Lillqvist tlillqvist at suse.com
Sat Aug 17 05:16:47 PDT 2013


 sw/source/ui/app/docstyle.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit c0bc6efa89236a92f802bfc2e63af6050bf3f3d7
Author: Tor Lillqvist <tlillqvist at suse.com>
Date:   Sat Aug 17 15:14:50 2013 +0300

    WaE: C4701: potentially uninitialized local variable 'nId' used
    
    Change-Id: Ibc68d00837ac84e4954faac52769a500780a7309

diff --git a/sw/source/ui/app/docstyle.cxx b/sw/source/ui/app/docstyle.cxx
index 1f32f1d..916550b 100644
--- a/sw/source/ui/app/docstyle.cxx
+++ b/sw/source/ui/app/docstyle.cxx
@@ -1003,7 +1003,7 @@ bool   SwDocStyleSheet::SetFollow( const OUString& rStr)
             const SwPageDesc* pFollowDesc = !rStr.isEmpty()
                                             ? lcl_FindPageDesc(rDoc, rStr)
                                             : 0;
-            sal_uInt16 nId;
+            sal_uInt16 nId = 0;
             if( pFollowDesc != pDesc->GetFollow() &&
                 rDoc.FindPageDescByName( pDesc->GetName(), &nId ) )
             {


More information about the Libreoffice-commits mailing list