Fix caching of unsuccessful initialization of parser or configuration.

Per report from Listmail <lists@peufeu.com>
This commit is contained in:
Teodor Sigaev 2007-04-02 11:42:25 +00:00
parent 4dd2d9192d
commit 100beb0dea
2 changed files with 2 additions and 2 deletions

View File

@ -224,8 +224,8 @@ findcfg(Oid id)
CList.reallen = reallen;
CList.list = tmp;
}
init_cfg(id, &(CList.list[CList.len]) );
CList.last_cfg = &(CList.list[CList.len]);
init_cfg(id, CList.last_cfg);
CList.len++;
qsort(CList.list, CList.len, sizeof(TSCfgInfo), comparecfg);
return findcfg(id); /* qsort changed order!! */ ;

View File

@ -127,8 +127,8 @@ findprs(Oid id)
PList.reallen = reallen;
PList.list = tmp;
}
init_prs(id, &(PList.list[PList.len]) );
PList.last_prs = &(PList.list[PList.len]);
init_prs(id, PList.last_prs);
PList.len++;
qsort(PList.list, PList.len, sizeof(WParserInfo), compareprs);
return findprs(id); /* qsort changed order!! */ ;