diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-01-07 20:45:36 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-01-07 21:57:00 +0000 |
commit | 30d28cb883c2304a845c816c0f1d1e504991cd76 (patch) | |
tree | f846467f672f919278c6e50860403915c6a6ede7 /cppu/source/typelib/static_types.cxx | |
parent | 89efbdd440343bd10b03fc80b6e396aea3215e90 (diff) |
coverity#704593 Dereference after null check
Change-Id: I5426cb2e8ca1e8fd2e9f38419ffe6d6e148a7cba
Diffstat (limited to 'cppu/source/typelib/static_types.cxx')
-rw-r--r-- | cppu/source/typelib/static_types.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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); } } |