From 30d28cb883c2304a845c816c0f1d1e504991cd76 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sat, 7 Jan 2017 20:45:36 +0000 Subject: coverity#704593 Dereference after null check Change-Id: I5426cb2e8ca1e8fd2e9f38419ffe6d6e148a7cba --- cppu/source/typelib/static_types.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cppu/source') diff --git a/cppu/source/typelib/static_types.cxx b/cppu/source/typelib/static_types.cxx index 2d8aa12e3478..33e5b296dc12 100644 --- a/cppu/source/typelib/static_types.cxx +++ b/cppu/source/typelib/static_types.cxx @@ -289,7 +289,7 @@ void SAL_CALL typelib_static_type_init( OUString aTypeName( OUString::createFromAscii( pTypeName ) ); ::typelib_typedescriptionreference_new( ppRef, eTypeClass, aTypeName.pData ); - // coverity[var_deref_op] - another static ref + assert(*ppRef && "coverity[var_deref_op] - shouldn't be possible"); ++((*ppRef)->nStaticRefCount); } } -- cgit