diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-01-28 09:23:36 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-01-28 11:29:17 +0000 |
commit | e357c93e7b64784ff383a97b00c553a64f75d3b0 (patch) | |
tree | 089d25d7e68f9deaba72f220efb0b5ec789563e2 /stoc | |
parent | coverity#440338 Dereference null return value (diff) | |
download | core-e357c93e7b64784ff383a97b00c553a64f75d3b0.tar.gz core-e357c93e7b64784ff383a97b00c553a64f75d3b0.zip |
coverity#440504 Dereference before null check
Change-Id: Ia7c817ca0b002279bee8699e4940c57937657ad4
Diffstat (limited to 'stoc')
-rw-r--r-- | stoc/source/corereflection/crefl.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stoc/source/corereflection/crefl.cxx b/stoc/source/corereflection/crefl.cxx index 866a4f7786e9..cc437d08920b 100644 --- a/stoc/source/corereflection/crefl.cxx +++ b/stoc/source/corereflection/crefl.cxx @@ -344,7 +344,7 @@ Reference< XIdlClass > IdlReflectionServiceImpl::forType( typelib_TypeDescriptio } else { - if (pTypeDescr && (xRet = constructClass( pTypeDescr )).is()) + if ((xRet = constructClass( pTypeDescr )).is()) _aElements.setValue( aName, makeAny( xRet ) ); // update } |