[Libreoffice-commits] .: cppuhelper/source
Caolán McNamara
caolan at kemper.freedesktop.org
Wed Nov 24 12:02:42 PST 2010
cppuhelper/source/findsofficepath.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
New commits:
commit 51fdb0e8e2636671bea49ce1f53a149f9e0861df
Author: Caolán McNamara <caolanm at redhat.com>
Date: Wed Nov 24 16:29:48 2010 +0000
cppcheck: Empty string test can be simplified
diff --git a/cppuhelper/source/findsofficepath.c b/cppuhelper/source/findsofficepath.c
index 56c0427..a52ecf2 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;
}
More information about the Libreoffice-commits
mailing list