Commit 9477f12e authored by Teodor Sigaev's avatar Teodor Sigaev

Fix caching of unsuccessful initialization of parser or configuration.

Per report from Listmail <lists@peufeu.com>
parent 57690c68
...@@ -224,8 +224,8 @@ findcfg(Oid id) ...@@ -224,8 +224,8 @@ findcfg(Oid id)
CList.reallen = reallen; CList.reallen = reallen;
CList.list = tmp; CList.list = tmp;
} }
init_cfg(id, &(CList.list[CList.len]) );
CList.last_cfg = &(CList.list[CList.len]); CList.last_cfg = &(CList.list[CList.len]);
init_cfg(id, CList.last_cfg);
CList.len++; CList.len++;
qsort(CList.list, CList.len, sizeof(TSCfgInfo), comparecfg); qsort(CList.list, CList.len, sizeof(TSCfgInfo), comparecfg);
return findcfg(id); /* qsort changed order!! */ ; return findcfg(id); /* qsort changed order!! */ ;
......
...@@ -127,8 +127,8 @@ findprs(Oid id) ...@@ -127,8 +127,8 @@ findprs(Oid id)
PList.reallen = reallen; PList.reallen = reallen;
PList.list = tmp; PList.list = tmp;
} }
init_prs(id, &(PList.list[PList.len]) );
PList.last_prs = &(PList.list[PList.len]); PList.last_prs = &(PList.list[PList.len]);
init_prs(id, PList.last_prs);
PList.len++; PList.len++;
qsort(PList.list, PList.len, sizeof(WParserInfo), compareprs); qsort(PList.list, PList.len, sizeof(WParserInfo), compareprs);
return findprs(id); /* qsort changed order!! */ ; return findprs(id); /* qsort changed order!! */ ;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment