Commit 0565579c authored by Tom Lane's avatar Tom Lane

Fix uninitialized-variable bug.

parent bf940763
/* $PostgreSQL: pgsql/contrib/tsearch2/dict_syn.c,v 1.13 2007/03/26 12:25:35 teodor Exp $ */ /* $PostgreSQL: pgsql/contrib/tsearch2/dict_syn.c,v 1.14 2007/03/28 01:28:34 tgl Exp $ */
/* /*
* ISpell interface * ISpell interface
...@@ -103,7 +103,8 @@ syn_init(PG_FUNCTION_ARGS) ...@@ -103,7 +103,8 @@ syn_init(PG_FUNCTION_ARGS)
while (fgets(buf, sizeof(buf), fin)) while (fgets(buf, sizeof(buf), fin))
{ {
pg_verifymbstr(buf, strlen(buf), false); slen = strlen(buf);
pg_verifymbstr(buf, slen, false);
if (cur == d->len) if (cur == d->len)
{ {
d->len = (d->len) ? 2 * d->len : 16; d->len = (d->len) ? 2 * d->len : 16;
......
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