* more whitch-hunt on strlen with isemptystr replacement.
[citadel.git] / citadel / modules / autocompletion / serv_autocompletion.c
index 5d593e897864accbf65dbb986ddb25bd2ff7f846..5aaedd8cbfa875caed9616f9941759bca84c8959 100644 (file)
@@ -176,7 +176,7 @@ void cmd_auto(char *argbuf) {
                
        if (CtdlAccessCheck(ac_logged_in)) return;
        extract_token(search_string, argbuf, 0, '|', sizeof search_string);
-       if (strlen(search_string) == 0) {
+       if (IsEmptyStr(search_string)) {
                cprintf("%d You supplied an empty partial.\n",
                        ERROR + ILLEGAL_VALUE);
                return;