repo: ngircd action: commit revision: path_from: revision_from: fe73835666238247809d6390661f66df10362a6e: path_to: revision_to:
commit fe73835666238247809d6390661f66df10362a6e Author: Alexander BartonDate: Fri Jan 10 19:57:03 2014 +0100 Client_SetHostname(): Don't use strlen() to test for value diff --git a/src/ngircd/client.c b/src/ngircd/client.c
--- 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);
-----END OF PAGE-----