ngircd

Free, portable and lightweight Internet Relay Chat server http://ngircd.barton.de/
Log | Files | Refs | README | LICENSE

commit fe73835666238247809d6390661f66df10362a6e
parent 5b4b7e2f55cee950f86966df3e0f335884cf8598
Author: Alexander Barton <alex@barton.de>
Date:   Fri, 10 Jan 2014 19:57:03 +0100

Client_SetHostname(): Don't use strlen() to test for value

Diffstat:
Msrc/ngircd/client.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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);