diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-08-04 00:26:10 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-08-04 00:26:10 (EDT) |
commit | fe26e2e6791333e1b2e5ac5da54bc7120ed89dc5 (patch) | |
tree | cc1f13e3e82e81dc588f28f5ae5e9eb0c4779c74 /src | |
parent | 7d6bae151dc6567ae03979929005e8eb8b2e6b1a (diff) |
s_client: Make a NULL condition explicit
Diffstat (limited to 'src')
-rw-r--r-- | src/s_client.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/s_client.c b/src/s_client.c index e902c29..bf82841 100644 --- a/src/s_client.c +++ b/src/s_client.c @@ -52,7 +52,7 @@ parse_host_port(char *hostport, char **host, char **port) /* XXX: Port is required. Otherwise, this will mangle IPv6 addresses * without some more intelligent (and larger) code. */ *port = strrchr(*host, ':'); - if (!*port) { + if (*port == NULL) { fputs("Port is required\n", stderr); return false; } |