summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 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;
}