wininet: Remove redundant "not NULL/0" checks (coccicheck).

Michael Stefaniuc mstefani at redhat.de
Wed May 19 18:15:33 CDT 2010


---
 dlls/wininet/http.c |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c
index bd2e574..dc6533b 100644
--- a/dlls/wininet/http.c
+++ b/dlls/wininet/http.c
@@ -4259,11 +4259,8 @@ DWORD HTTP_Connect(appinfo_t *hIC, LPCWSTR lpszServerName,
         if(hIC->lpszProxyBypass)
             FIXME("Proxy bypass is ignored.\n");
     }
-    if (lpszServerName && lpszServerName[0])
-    {
-        lpwhs->lpszServerName = heap_strdupW(lpszServerName);
-        lpwhs->lpszHostName = heap_strdupW(lpszServerName);
-    }
+    lpwhs->lpszServerName = heap_strdupW(lpszServerName);
+    lpwhs->lpszHostName = heap_strdupW(lpszServerName);
     if (lpszUserName && lpszUserName[0])
         lpwhs->lpszUserName = heap_strdupW(lpszUserName);
     if (lpszPassword && lpszPassword[0])
-- 
1.7.1



More information about the wine-patches mailing list