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

Julien Nabet serval2412 at yahoo.fr
Sun Feb 24 03:53:10 PST 2013


 sw/source/core/doc/docfmt.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 80f57172833ec720a2bc0d7d9c8f82f8bc5fc70d
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Sun Feb 24 12:50:48 2013 +0100

    Fix uninitialized local variable
    
    Change-Id: I0ef7779b76909dbe4fdfea58dbaf54cd01f7dcfa

diff --git a/sw/source/core/doc/docfmt.cxx b/sw/source/core/doc/docfmt.cxx
index 1a90245..c35b6fe 100644
--- a/sw/source/core/doc/docfmt.cxx
+++ b/sw/source/core/doc/docfmt.cxx
@@ -761,7 +761,7 @@ lcl_InsAttr(SwDoc *const pDoc, const SwPaM &rRg, const SfxItemSet& rChgSet,
         {
             // If we have a PoolNumRule, create it if needed
             const SwNumRuleItem* pRule;
-            sal_uInt16 nPoolId;
+            sal_uInt16 nPoolId=0;
             if( SFX_ITEM_SET == pOtherSet->GetItemState( RES_PARATR_NUMRULE,
                                 sal_False, (const SfxPoolItem**)&pRule ) &&
                 !pDoc->FindNumRulePtr( pRule->GetValue() ) &&


More information about the Libreoffice-commits mailing list