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

Tor Lillqvist tlillqvist at suse.com
Thu Aug 1 03:34:47 PDT 2013


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

New commits:
commit 67c8d5b7ab6ec77d7d701bc5aefbb94d4db4ef1c
Author: Tor Lillqvist <tlillqvist at suse.com>
Date:   Thu Aug 1 13:32:14 2013 +0300

    WaE: C4701: potentially uninitialized local variable 'pGlossary' used
    
    Change-Id: I299c89c6417b6f3cf0932d8c5d8a3b9983300d5e

diff --git a/sw/source/ui/dochdl/gloshdl.cxx b/sw/source/ui/dochdl/gloshdl.cxx
index 0641bce..8e852fb 100644
--- a/sw/source/ui/dochdl/gloshdl.cxx
+++ b/sw/source/ui/dochdl/gloshdl.cxx
@@ -736,7 +736,7 @@ sal_Bool SwGlossaryHdl::ImportGlossaries( const OUString& rName )
         pMed->UseInteractionHandler( sal_True );
         if( !aMatcher.GuessFilter( *pMed, &pFilter, sal_False ) )
         {
-            SwTextBlocks *pGlossary;
+            SwTextBlocks *pGlossary = NULL;
             pMed->SetFilter( pFilter );
             Reader* pR = SwReaderWriter::GetReader( pFilter->GetUserData() );
             if( pR && 0 != ( pGlossary = pCurGrp ? pCurGrp


More information about the Libreoffice-commits mailing list