summaryrefslogtreecommitdiffstats
path: root/cppuhelper/source/findsofficepath.c
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2010-11-24 16:29:48 +0000
committerCaolán McNamara <caolanm@redhat.com>2010-11-24 16:29:48 +0000
commitf41487508fcf1ebc6dbac1a4d9837594946ba500 (patch)
treef492fd087640454cd1adbad0f4534e0fd2762504 /cppuhelper/source/findsofficepath.c
parentfix invalid XML (diff)
downloadcore-f41487508fcf1ebc6dbac1a4d9837594946ba500.tar.gz
core-f41487508fcf1ebc6dbac1a4d9837594946ba500.zip
cppcheck: Empty string test can be simplified
Diffstat (limited to 'cppuhelper/source/findsofficepath.c')
-rw-r--r--cppuhelper/source/findsofficepath.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/cppuhelper/source/findsofficepath.c b/cppuhelper/source/findsofficepath.c
index faa5b21386da..475ce747d7ad 100644
--- a/cppuhelper/source/findsofficepath.c
+++ b/cppuhelper/source/findsofficepath.c
@@ -197,10 +197,8 @@ char const* cppuhelper_detail_findSofficePath()
/* get the installation path from the UNO_PATH environment variable */
path = getenv( UNOPATHVARNAME );
- if ( path == NULL || strlen( path ) == 0 )
- {
+ if (!path || !path[0])
path = platformSpecific();
- }
return path;
}