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

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Mon Mar 22 12:33:52 UTC 2021


 stoc/source/typeconv/convert.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit af6a33f495a6c0ad1981a250dde355044e8519cb
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Mon Mar 22 10:15:38 2021 +0000
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Mon Mar 22 13:33:08 2021 +0100

    cid#1473974 silence Explicit null dereferenced
    
    Change-Id: Id9e381c3919dac989a5957beddd0c070d38ad47d
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112870
    Tested-by: Caolán McNamara <caolanm at redhat.com>
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/stoc/source/typeconv/convert.cxx b/stoc/source/typeconv/convert.cxx
index e8fe65830a99..2f87b4f42500 100644
--- a/stoc/source/typeconv/convert.cxx
+++ b/stoc/source/typeconv/convert.cxx
@@ -495,6 +495,7 @@ Any SAL_CALL TypeConverter_Impl::convertTo( const Any& rVal, const Type& aDestTy
         {
             // void -> interface (null)
             void * null_ref = nullptr;
+            // coverity[var_deref_model : FALSE] - null_ref will not be derefed in this case
             aRet.setValue( &null_ref, aDestType );
             break;
         }


More information about the Libreoffice-commits mailing list