winhttp: Remove redundant "not NULL" check for the "server" arg.
This commit is contained in:
parent
00ff0db708
commit
8e8f743cb0
|
@ -503,7 +503,7 @@ HINTERNET WINAPI WinHttpConnect( HINTERNET hsession, LPCWSTR server, INTERNET_PO
|
||||||
connect->session = session;
|
connect->session = session;
|
||||||
list_add_head( &session->hdr.children, &connect->hdr.entry );
|
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;
|
connect->hostport = port;
|
||||||
|
|
||||||
if (!set_server_for_hostname( connect, server, port ))
|
if (!set_server_for_hostname( connect, server, port ))
|
||||||
|
|
Loading…
Reference in New Issue