Kaydet (Commit) 6c6caf02 authored tarafından Markus Mohrhard's avatar Markus Mohrhard Kaydeden (comit) Michael Stahl

better way to check for empty strings

Change-Id: Ib52b3f958e9e346194d4427bf59c6f62ee8ed105
Signed-off-by: 's avatarMichael Stahl <mstahl@redhat.com>
üst 00d7d6db
......@@ -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))
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment