stoc/source/typeconv/convert.cxx | 1 +
1 file changed, 1 insertion(+)
New commits:
commit af6a33f495a6c0ad1981a250dde355044e8519cb
Author: Caolán McNamara <[email protected]>
AuthorDate: Mon Mar 22 10:15:38 2021 +0000
Commit: Caolán McNamara <[email protected]>
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 <[email protected]>
Reviewed-by: Caolán McNamara <[email protected]>
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;
}
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits