summaryrefslogtreecommitdiffstats
path: root/src/s_client.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/s_client.c')
-rw-r--r--src/s_client.c2
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;
}