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

Commit0565579

Browse files
committed
Fix uninitialized-variable bug.
1 parentbf94076 commit0565579

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎contrib/tsearch2/dict_syn.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $PostgreSQL: pgsql/contrib/tsearch2/dict_syn.c,v 1.13 2007/03/26 12:25:35 teodor Exp $ */
1+
/* $PostgreSQL: pgsql/contrib/tsearch2/dict_syn.c,v 1.14 2007/03/28 01:28:34 tgl Exp $ */
22

33
/*
44
* ISpell interface
@@ -103,7 +103,8 @@ syn_init(PG_FUNCTION_ARGS)
103103

104104
while (fgets(buf,sizeof(buf),fin))
105105
{
106-
pg_verifymbstr(buf,strlen(buf), false);
106+
slen=strlen(buf);
107+
pg_verifymbstr(buf,slen, false);
107108
if (cur==d->len)
108109
{
109110
d->len= (d->len) ?2*d->len :16;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp