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 | 51fdb0e8e2636671bea49ce1f53a149f9e0861df (patch) | |
tree | 04349bd006a5e2e53a4d92e99d231c9d960eed96 /cppuhelper | |
parent | f4eb2309caa11368dbe8521e97ea551fbc13d57c (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 56c04273f..a52ecf265 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; } |