]> arthur.barton.de Git - ngircd-alex.git/commitdiff
Client_SetHostname(): Don't use strlen() to test for value
authorAlexander Barton <alex@barton.de>
Fri, 10 Jan 2014 18:57:03 +0000 (19:57 +0100)
committerAlexander Barton <alex@barton.de>
Fri, 10 Jan 2014 18:57:05 +0000 (19:57 +0100)
src/ngircd/client.c

index 5f01648c088516a60b2af5fed51c6bc8635be71a..bfb52e8f95ce091a2ac96faa63048fdddea67857 100644 (file)
@@ -345,7 +345,7 @@ Client_SetHostname( CLIENT *Client, const char *Hostname )
        assert(Client != NULL);
        assert(Hostname != NULL);
 
        assert(Client != NULL);
        assert(Hostname != NULL);
 
-       if (strlen(Conf_CloakHost)) {
+       if (Conf_CloakHost[0]) {
                char cloak[GETID_LEN];
 
                strlcpy(cloak, Hostname, GETID_LEN);
                char cloak[GETID_LEN];
 
                strlcpy(cloak, Hostname, GETID_LEN);