summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2015-03-11 22:03:26 +0100
committerMichael Stahl <mstahl@redhat.com>2015-03-11 22:04:06 +0100
commit6c6caf02aebb5637f98cb153bc96abab23ccdfce (patch)
tree33a9dce51599f1f0ace0dc84fa230038353c73f8 /sal
parent00d7d6db0219c28dbc30e3e0175721c2f6161da9 (diff)
better way to check for empty strings
Change-Id: Ib52b3f958e9e346194d4427bf59c6f62ee8ed105 Signed-off-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'sal')
-rw-r--r--sal/osl/w32/profile.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sal/osl/w32/profile.cxx b/sal/osl/w32/profile.cxx
index 066aeed5be4f..27bc9d71acfe 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))
{