Module: wine Branch: master Commit: 8e8f743cb068ed2ac589d715f8db65bea3df6b48 URL: http://source.winehq.org/git/wine.git/?a=commit;h=8e8f743cb068ed2ac589d715f8...
Author: Michael Stefaniuc mstefani@redhat.de Date: Mon May 17 01:11:35 2010 +0200
winhttp: Remove redundant "not NULL" check for the "server" arg.
---
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 ))