* more whitch-hunt on strlen with isemptystr replacement.
[citadel.git] / citadel / modules / imap / serv_imap.c
index a391e91ac28291089538a78ee0c5f2891a48def3..46b2053978c2c1fde4a9efccdf8d04f07b2ef478 100644 (file)
@@ -587,7 +587,7 @@ void imap_auth_plain(char *cmd)
 
        IMAP->authstate = imap_as_normal;
 
-       if (strlen(ident) > 0) {
+       if (!IsEmptyStr(ident)) {
                result = CtdlLoginExistingUser(user, ident);
        }
        else {