Module: ngircd.git Branch: master Commit: fe73835666238247809d6390661f66df10362a6e URL: http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=fe7383566... Author: Alexander Barton <alex@barton.de> Date: Fri Jan 10 19:57:03 2014 +0100 Client_SetHostname(): Don't use strlen() to test for value --- src/ngircd/client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ngircd/client.c b/src/ngircd/client.c index 5f01648..bfb52e8 100644 --- a/src/ngircd/client.c +++ b/src/ngircd/client.c @@ -345,7 +345,7 @@ Client_SetHostname( CLIENT *Client, const char *Hostname ) assert(Client != NULL); assert(Hostname != NULL); - if (strlen(Conf_CloakHost)) { + if (Conf_CloakHost[0]) { char cloak[GETID_LEN]; strlcpy(cloak, Hostname, GETID_LEN);