summaryrefslogtreecommitdiff
path: root/stoc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-01-28 09:23:36 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-01-28 11:29:17 +0000
commite357c93e7b64784ff383a97b00c553a64f75d3b0 (patch)
tree089d25d7e68f9deaba72f220efb0b5ec789563e2 /stoc
parent51f252dbf22343bfd68bf707d3d10a19d621587e (diff)
coverity#440504 Dereference before null check
Change-Id: Ia7c817ca0b002279bee8699e4940c57937657ad4
Diffstat (limited to 'stoc')
-rw-r--r--stoc/source/corereflection/crefl.cxx2
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
}