diff options
author | Caolán McNamara <caolanm@redhat.com> | 2010-11-24 16:29:48 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2010-11-24 16:29:48 +0000 |
commit | f41487508fcf1ebc6dbac1a4d9837594946ba500 (patch) | |
tree | f492fd087640454cd1adbad0f4534e0fd2762504 /cppuhelper | |
parent | 9f9e65ec9c85634b8d99546e4ba673029bde4be0 (diff) |
cppcheck: Empty string test can be simplified
Diffstat (limited to 'cppuhelper')
-rw-r--r-- | cppuhelper/source/findsofficepath.c | 4 |
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; } |