Michael Stefaniuc : wininet: Simplify while loop conditions (PVS-Studio).
Alexandre Julliard
julliard at wine.codeweavers.com
Fri Oct 31 02:53:36 CDT 2014
Module: wine
Branch: master
Commit: 06afdda61777d43f6c7d5b78157b465172b0174b
URL: http://source.winehq.org/git/wine.git/?a=commit;h=06afdda61777d43f6c7d5b78157b465172b0174b
Author: Michael Stefaniuc <mstefani at redhat.de>
Date: Thu Oct 30 23:38:20 2014 +0100
wininet: Simplify while loop conditions (PVS-Studio).
---
dlls/wininet/http.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c
index a98ed53..cb30b26 100644
--- a/dlls/wininet/http.c
+++ b/dlls/wininet/http.c
@@ -809,7 +809,7 @@ static void strip_spaces(LPWSTR start)
LPWSTR str = start;
LPWSTR end;
- while (*str == ' ' && *str != '\0')
+ while (*str == ' ')
str++;
if (str != start)
@@ -841,13 +841,13 @@ static inline BOOL is_basic_auth_value( LPCWSTR pszAuthValue, LPWSTR *pszRealm )
if (!token)
return TRUE;
realm = ptr;
- while (*realm == ' ' && *realm != '\0')
+ while (*realm == ' ')
realm++;
if(!strncmpiW(realm, szRealm, ARRAYSIZE(szRealm)) &&
(realm[ARRAYSIZE(szRealm)] == ' ' || realm[ARRAYSIZE(szRealm)] == '='))
{
token++;
- while (*token == ' ' && *token != '\0')
+ while (*token == ' ')
token++;
if (*token == '\0')
return TRUE;
More information about the wine-cvs
mailing list