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

Caolán McNamara caolanm at redhat.com
Mon Apr 3 09:19:28 UTC 2017


 idl/source/objects/slot.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit aa434253d2c5694b074fd774752f5407b8d491d1
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Mon Apr 3 10:18:44 2017 +0100

    coverity#1403731 Explicit null dereferenced
    
    Change-Id: I6025e6d4307aa8a6e4b6338d62bc597dace0ac9e

diff --git a/idl/source/objects/slot.cxx b/idl/source/objects/slot.cxx
index 27302f3c645e..ff0760d7addc 100644
--- a/idl/source/objects/slot.cxx
+++ b/idl/source/objects/slot.cxx
@@ -548,6 +548,7 @@ void SvMetaSlot::WriteSlot( const OString& rShellName, sal_uInt16 nCount,
         }
     }
 
+    assert(pNextSlot);
 
     rOutStm.WriteCharPtr( "&a" ).WriteOString( rShellName ).WriteCharPtr( "Slots_Impl[" )
        .WriteOString( OString::number(pNextSlot->GetListPos()) )


More information about the Libreoffice-commits mailing list