X-Git-Url: https://code.citadel.org/?p=citadel.git;a=blobdiff_plain;f=citadel%2Fmodules%2Finetcfg%2Fserv_inetcfg.c;h=90f4431fd2613701274b810a661fa27673424359;hp=eaab32d370102438debb031c02257f72813cc933;hb=81c4e76237b24b9969982b6221def3929b95fe63;hpb=a6b260d714010f962c6baef4c6f864e31f21b31d diff --git a/citadel/modules/inetcfg/serv_inetcfg.c b/citadel/modules/inetcfg/serv_inetcfg.c index eaab32d37..90f4431fd 100644 --- a/citadel/modules/inetcfg/serv_inetcfg.c +++ b/citadel/modules/inetcfg/serv_inetcfg.c @@ -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;