diff options
author | Alexander Færøy <ahf@0x90.dk> | 2014-10-11 12:13:22 +0200 |
---|---|---|
committer | Alexander Færøy <ahf@0x90.dk> | 2014-10-11 12:13:22 +0200 |
commit | 10078407f6cab2e25e35be37dba903d91126f561 (patch) | |
tree | 0bca77bf155b0b631f62a812b1bbb285f510e2a7 | |
parent | 3f50b8f2ad7e9a10aab1ff88c58141563c4dd68a (diff) | |
download | irssi-10078407f6cab2e25e35be37dba903d91126f561.zip |
Remove unnecessary NULL check
Fixes: #135
-rw-r--r-- | src/core/servers.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/core/servers.c b/src/core/servers.c index 06f82d4d..6eaad191 100644 --- a/src/core/servers.c +++ b/src/core/servers.c @@ -218,9 +218,7 @@ static void server_real_connect(SERVER_REC *server, IPADDR *ip, return; if (ip != NULL) { - own_ip = ip == NULL ? NULL : - (IPADDR_IS_V6(ip) ? server->connrec->own_ip6 : - server->connrec->own_ip4); + own_ip = IPADDR_IS_V6(ip) ? server->connrec->own_ip6 : server->connrec->own_ip4; port = server->connrec->proxy != NULL ? server->connrec->proxy_port : server->connrec->port; handle = server->connrec->use_ssl ? |