diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-11-20 08:54:44 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-11-20 16:47:32 +0000 |
commit | 9b6b25e71338ac298d495d9bc5f046ef0d0b980e (patch) | |
tree | 7555fd7849f4067851f0c38e1fa942228e8896e4 | |
parent | 6a9f0cdc021bdc591cb140bb3c2d609723430b0c (diff) |
WaE: -Wempty-body
Change-Id: I07e0b3b466a0fac4c8ddf279b546f807501bc2e7
-rw-r--r-- | sal/osl/unx/profile.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sal/osl/unx/profile.c b/sal/osl/unx/profile.c index e51fdcfb53a3..8427f7ea66a2 100644 --- a/sal/osl/unx/profile.c +++ b/sal/osl/unx/profile.c @@ -813,17 +813,18 @@ sal_Bool SAL_CALL osl_writeProfileIdent(oslProfile Profile, sal_uInt32 FirstId, const sal_Char* Strings[], sal_uInt32 Value) { - int i, n; + int i, n = 0; sal_Bool bRet=sal_False; #ifdef TRACE_OSL_PROFILE OSL_TRACE("In osl_writeProfileIdent"); #endif - for (n = 0; Strings[n] != NULL; n++); + while (Strings[n] != NULL) + ++n; if ((i = Value - FirstId) >= n) - bRet=sal_False; + bRet = sal_False; else bRet = osl_writeProfileString(Profile, pszSection, pszEntry, Strings[i]); |