coverity#704593 Dereference after null check

Change-Id: I5426cb2e8ca1e8fd2e9f38419ffe6d6e148a7cba
This commit is contained in:
Caolán McNamara 2017-01-07 20:45:36 +00:00
parent 89efbdd440
commit 30d28cb883

View file

@ -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);
}
}