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

Alexandre Julliard julliard at winehq.org
Thu May 20 11:02:59 CDT 2010


Module: wine
Branch: master
Commit: 2c07791c5bc02b3415a1f7542dd7e36af5d0f01d
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=2c07791c5bc02b3415a1f7542dd7e36af5d0f01d

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Thu May 20 01:15:33 2010 +0200

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

---

 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])




More information about the wine-cvs mailing list