summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-06-12 10:23:06 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-06-12 10:24:20 +0100
commit111cec826beefffb25f5efa73c7e5004f46a3cd8 (patch)
tree51beec42232e4ef37a67d36a2056163452777451 /dbaccess
parent6ad13d3591304df9957e9c50caf06fb342e3dba7 (diff)
coverity#982455 Dereference after null check
Change-Id: If4ad2fe763bffdb64119f7f2a5797aae588fbbf8
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/core/misc/services.cxx8
1 files changed, 2 insertions, 6 deletions
diff --git a/dbaccess/source/core/misc/services.cxx b/dbaccess/source/core/misc/services.cxx
index 4b0665dc50bb..232bd54819f8 100644
--- a/dbaccess/source/core/misc/services.cxx
+++ b/dbaccess/source/core/misc/services.cxx
@@ -75,12 +75,8 @@ extern "C" SAL_DLLPUBLIC_EXPORT void* SAL_CALL dba_component_getFactory(
{
createRegistryInfo_DBA();
- Reference< XInterface > xRet;
- if (pServiceManager && pImplementationName)
- {
- xRet = ::dba::DbaModule::getInstance().getComponentFactory(
- OUString::createFromAscii( pImplementationName ) );
- }
+ Reference<XInterface> xRet(::dba::DbaModule::getInstance().getComponentFactory(
+ OUString::createFromAscii(pImplementationName)));
if (xRet.is())
xRet->acquire();