[Libreoffice-commits] core.git: sal/osl
Markus Mohrhard
markus.mohrhard at collabora.co.uk
Wed Mar 11 14:09:53 PDT 2015
sal/osl/w32/profile.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 6c6caf02aebb5637f98cb153bc96abab23ccdfce
Author: Markus Mohrhard <markus.mohrhard at collabora.co.uk>
Date: Wed Mar 11 22:03:26 2015 +0100
better way to check for empty strings
Change-Id: Ib52b3f958e9e346194d4427bf59c6f62ee8ed105
Signed-off-by: Michael Stahl <mstahl at redhat.com>
diff --git a/sal/osl/w32/profile.cxx b/sal/osl/w32/profile.cxx
index 066aeed..27bc9d7 100644
--- a/sal/osl/w32/profile.cxx
+++ b/sal/osl/w32/profile.cxx
@@ -2389,7 +2389,7 @@ static sal_Bool lookupProfile(const sal_Unicode *strPath, const sal_Unicode *str
osl_closeProfile(hProfile);
/* if not found, try the fallback */
- if ((strlen(Buffer) <= 0)
+ if ((Buffer[0] == '\0')
&& (strcmp(SVERSION_LOCATION, SVERSION_FALLBACK)
!= 0))
{
More information about the Libreoffice-commits
mailing list