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

Stephan Bergmann sbergman at redhat.com
Thu Nov 28 23:55:46 PST 2013


 sw/source/filter/ww8/docxattributeoutput.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 2c544ef03e3163bcad7209da99ead207e31bc868
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Fri Nov 29 08:55:16 2013 +0100

    Avoid false warning about potentially uninitialized variable
    
    Change-Id: I969b17ffe89e5fbb0f30a47acecaf6698e81fefe

diff --git a/sw/source/filter/ww8/docxattributeoutput.cxx b/sw/source/filter/ww8/docxattributeoutput.cxx
index 419d745..a01788e 100644
--- a/sw/source/filter/ww8/docxattributeoutput.cxx
+++ b/sw/source/filter/ww8/docxattributeoutput.cxx
@@ -331,7 +331,7 @@ bool lcl_checkFrameBtlr(SwNode* pStartNode, sax_fastparser::FastAttributeList* p
 
     SwTxtNode* pTxtNode = static_cast<SwTxtNode*>(pStartNode);
 
-    const SfxPoolItem* pItem;
+    const SfxPoolItem* pItem = 0; // explicitly init to avoid warnings
     bool bItemSet = false;
     if (pTxtNode->HasSwAttrSet())
     {


More information about the Libreoffice-commits mailing list