From fe26e2e6791333e1b2e5ac5da54bc7120ed89dc5 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sun, 04 Aug 2019 00:26:10 -0400 Subject: s_client: Make a NULL condition explicit --- 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; } -- cgit v0.9.1