sal/osl/w32/profile.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 6c6caf02aebb5637f98cb153bc96abab23ccdfce Author: Markus Mohrhard <[email protected]> Date: Wed Mar 11 22:03:26 2015 +0100 better way to check for empty strings Change-Id: Ib52b3f958e9e346194d4427bf59c6f62ee8ed105 Signed-off-by: Michael Stahl <[email protected]> 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)) { _______________________________________________ Libreoffice-commits mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
