winhttp: Remove redundant "not NULL" check for the "server" arg.
Michael Stefaniuc
mstefani at redhat.de
Sun May 16 18:11:35 CDT 2010
Found by coccicheck.
---
dlls/winhttp/session.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/winhttp/session.c b/dlls/winhttp/session.c
index 5557250..acf7eb9 100644
--- a/dlls/winhttp/session.c
+++ b/dlls/winhttp/session.c
@@ -503,7 +503,7 @@ HINTERNET WINAPI WinHttpConnect( HINTERNET hsession, LPCWSTR server, INTERNET_PO
connect->session = session;
list_add_head( &session->hdr.children, &connect->hdr.entry );
- if (server && !(connect->hostname = strdupW( server ))) goto end;
+ if (!(connect->hostname = strdupW( server ))) goto end;
connect->hostport = port;
if (!set_server_for_hostname( connect, server, port ))
--
1.7.1
More information about the wine-patches
mailing list