diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-11-14 16:43:10 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-11-14 16:49:30 +0000 |
commit | 3d876661857b68cafde16fafd5f280cc78b3e52b (patch) | |
tree | 05fb8050ae99919ffcde5c9c050b947812e83482 /cppu | |
parent | 7d9b6119495bf1ca04cfe7b413cf165f347d0ec5 (diff) |
coverity#704593 silence Dereference after null check
Change-Id: I3ccd6895a1ddbf46a441e60ceaaaceb945f682e4
Diffstat (limited to 'cppu')
-rw-r--r-- | cppu/source/typelib/static_types.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/cppu/source/typelib/static_types.cxx b/cppu/source/typelib/static_types.cxx index 13d2e859bf4c..fb99775b073f 100644 --- a/cppu/source/typelib/static_types.cxx +++ b/cppu/source/typelib/static_types.cxx @@ -277,7 +277,6 @@ CPPU_DLLPUBLIC typelib_TypeDescriptionReference ** SAL_CALL typelib_static_type_ return &s_aTypes[eTypeClass]; } - CPPU_DLLPUBLIC void SAL_CALL typelib_static_type_init( typelib_TypeDescriptionReference ** ppRef, typelib_TypeClass eTypeClass, const sal_Char * pTypeName ) @@ -291,13 +290,12 @@ CPPU_DLLPUBLIC void SAL_CALL typelib_static_type_init( OUString aTypeName( OUString::createFromAscii( pTypeName ) ); ::typelib_typedescriptionreference_new( ppRef, eTypeClass, aTypeName.pData ); - // another static ref: + // coverity[var_deref_op] - another static ref ++((*ppRef)->nStaticRefCount); } } } - CPPU_DLLPUBLIC void SAL_CALL typelib_static_sequence_type_init( typelib_TypeDescriptionReference ** ppRef, typelib_TypeDescriptionReference * pElementType ) |