projects
/
users
/
gsingh
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf94076
)
Fix uninitialized-variable bug.
author
Tom Lane
<tgl@sss.pgh.pa.us>
Wed, 28 Mar 2007 01:28:34 +0000
(
01:28
+0000)
committer
Tom Lane
<tgl@sss.pgh.pa.us>
Wed, 28 Mar 2007 01:28:34 +0000
(
01:28
+0000)
contrib/tsearch2/dict_syn.c
patch
|
blob
|
blame
|
history
diff --git
a/contrib/tsearch2/dict_syn.c
b/contrib/tsearch2/dict_syn.c
index cf730ed88d59d24d4855170e69e938af5453dcf1..c76208eccb55c0997b403960864989ee5345756f 100644
(file)
--- a/
contrib/tsearch2/dict_syn.c
+++ b/
contrib/tsearch2/dict_syn.c
@@
-1,4
+1,4
@@
-/* $PostgreSQL: pgsql/contrib/tsearch2/dict_syn.c,v 1.1
3 2007/03/26 12:25:35 teodor
Exp $ */
+/* $PostgreSQL: pgsql/contrib/tsearch2/dict_syn.c,v 1.1
4 2007/03/28 01:28:34 tgl
Exp $ */
/*
* ISpell interface
@@
-103,7
+103,8
@@
syn_init(PG_FUNCTION_ARGS)
while (fgets(buf, sizeof(buf), fin))
{
- pg_verifymbstr(buf, strlen(buf), false);
+ slen = strlen(buf);
+ pg_verifymbstr(buf, slen, false);
if (cur == d->len)
{
d->len = (d->len) ? 2 * d->len : 16;