Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9477f12

Browse files
committed
Fix caching of unsuccessful initialization of parser or configuration.
Per report from Listmail <lists@peufeu.com>
1 parent57690c6 commit9477f12

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎contrib/tsearch2/ts_cfg.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,8 @@ findcfg(Oid id)
224224
CList.reallen=reallen;
225225
CList.list=tmp;
226226
}
227+
init_cfg(id,&(CList.list[CList.len]) );
227228
CList.last_cfg=&(CList.list[CList.len]);
228-
init_cfg(id,CList.last_cfg);
229229
CList.len++;
230230
qsort(CList.list,CList.len,sizeof(TSCfgInfo),comparecfg);
231231
returnfindcfg(id);/* qsort changed order!! */ ;

‎contrib/tsearch2/wparser.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,8 @@ findprs(Oid id)
127127
PList.reallen=reallen;
128128
PList.list=tmp;
129129
}
130+
init_prs(id,&(PList.list[PList.len]) );
130131
PList.last_prs=&(PList.list[PList.len]);
131-
init_prs(id,PList.last_prs);
132132
PList.len++;
133133
qsort(PList.list,PList.len,sizeof(WParserInfo),compareprs);
134134
returnfindprs(id);/* qsort changed order!! */ ;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp