* more whitch-hunt on strlen with isemptystr replacement.
[citadel.git] / citadel / modules / inetcfg / serv_inetcfg.c
index eaab32d370102438debb031c02257f72813cc933..90f4431fd2613701274b810a661fa27673424359 100644 (file)
@@ -62,7 +62,7 @@ void inetcfg_setTo(struct CtdlMessage *msg) {
                do {
                        extract_token(buf, conf, 0, '\n', sizeof buf);
                        strcpy(conf, &conf[strlen(buf)+1]);
-               } while ( (strlen(conf)>0) && (strlen(buf)>0) );
+               } while ( (!IsEmptyStr(conf)) && (!IsEmptyStr(buf)) );
 
                if (inetcfg != NULL) free(inetcfg);
                inetcfg = conf;