summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorFrank Schönheit <fs@openoffice.org>2010-01-04 13:57:49 +0000
committerFrank Schönheit <fs@openoffice.org>2010-01-04 13:57:49 +0000
commit730b75df62443c6c17646d6c82a9b5b1f389c71c (patch)
tree13deec8a3dfd2062109991ae2e36c641ca2cb055 /dbaccess
parentb45e9ea9791b2ac6879f5ed4080a3426a1cb5639 (diff)
#i108040#
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/core/misc/dsntypes.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/dbaccess/source/core/misc/dsntypes.cxx b/dbaccess/source/core/misc/dsntypes.cxx
index 672b88c810d4..f81dc020b05f 100644
--- a/dbaccess/source/core/misc/dsntypes.cxx
+++ b/dbaccess/source/core/misc/dsntypes.cxx
@@ -195,7 +195,7 @@ String ODsnTypeCollection::getDatasourcePrefixFromMediaType(const ::rtl::OUStrin
if ( aFeatures.getOrDefault("MediaType",::rtl::OUString()) == _sMediaType )
{
const ::rtl::OUString sFileExtension = aFeatures.getOrDefault("Extension",::rtl::OUString());
- if ( (sFileExtension.getLength() && _sExtension == sFileExtension ) || !sFileExtension.getLength() || !_sExtension.getLength() )
+ if ( _sExtension == sFileExtension )
{
sURL = *pIter;
break;