diff options
| author | Alexander Barton <alex@barton.de> | 2014-01-10 19:57:03 +0100 |
|---|---|---|
| committer | Alexander Barton <alex@barton.de> | 2014-01-10 19:57:05 +0100 |
| commit | fe73835666238247809d6390661f66df10362a6e (patch) | |
| tree | d35630d1cbe351edecae29ea5e391e2a666a67dd /src | |
| parent | 5b4b7e2f55cee950f86966df3e0f335884cf8598 (diff) | |
| download | ngircd-fe73835666238247809d6390661f66df10362a6e.tar.gz ngircd-fe73835666238247809d6390661f66df10362a6e.zip | |
Client_SetHostname(): Don't use strlen() to test for value
Diffstat (limited to 'src')
| -rw-r--r-- | src/ngircd/client.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ngircd/client.c b/src/ngircd/client.c index 5f01648c..bfb52e8f 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); |