1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-10 01:48:00 +00:00

Deal with "possible unintended assignment" warnings.

[originally from svn r2461]
This commit is contained in:
Ben Harris 2003-01-05 13:46:13 +00:00
parent b91ae87c78
commit 7c37547df8

4
ssh.c
View File

@ -2065,7 +2065,7 @@ static char *connect_to_host(Ssh ssh, char *host, int port,
*/
logeventf(ssh, "Looking up host \"%s\"", host);
addr = name_lookup(host, port, realhost);
if ((err = sk_addr_error(addr)))
if ((err = sk_addr_error(addr)) != NULL)
return err;
/*
@ -2078,7 +2078,7 @@ static char *connect_to_host(Ssh ssh, char *host, int port,
}
ssh->fn = &fn_table;
ssh->s = new_connection(addr, *realhost, port, 0, 1, nodelay, (Plug) ssh);
if ((err = sk_socket_error(ssh->s))) {
if ((err = sk_socket_error(ssh->s)) != NULL) {
ssh->s = NULL;
return err;
}