--- libaitcfg/src/aitcfg.c 2008/09/30 20:00:26 1.1.1.1.2.2 +++ libaitcfg/src/aitcfg.c 2009/05/25 07:43:51 1.1.1.1.2.3 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitcfg.c,v 1.1.1.1.2.2 2008/09/30 20:00:26 misho Exp $ +* $Id: aitcfg.c,v 1.1.1.1.2.3 2009/05/25 07:43:51 misho Exp $ * *************************************************************************/ #include "global.h" @@ -76,7 +76,7 @@ void UnloadConfig(sl_config * __restrict cfg) if (!cfg->slh_first) return; - for (av = cfg->slh_first; av; av = av->sle_next) { + while ((av = cfg->slh_first)) { cfg->slh_first = cfg->slh_first->sle_next; if (av->psValue)