projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
debb3aa
)
Add checking of end of line in parsing stopword list. Thanks to sharp eyes of Tom...
author
Teodor Sigaev
<teodor@sigaev.ru>
Mon, 26 Mar 2007 13:57:07 +0000
(13:57 +0000)
committer
Teodor Sigaev
<teodor@sigaev.ru>
Mon, 26 Mar 2007 13:57:07 +0000
(13:57 +0000)
contrib/tsearch2/stopword.c
patch
|
blob
|
blame
|
history
diff --git
a/contrib/tsearch2/stopword.c
b/contrib/tsearch2/stopword.c
index 582932e84be669235147e6790d98f9e1929a01a2..2165bb68ddc4ce05b2fb00e89425e5d49f004db0 100644
(file)
--- a/
contrib/tsearch2/stopword.c
+++ b/
contrib/tsearch2/stopword.c
@@
-48,7
+48,7
@@
readstoplist(text *in, StopList * s)
while (fgets(buf, sizeof(buf), hin))
{
pbuf = buf;
- while( !isspace( *pbuf ) )
+ while(
*pbuf &&
!isspace( *pbuf ) )
pbuf++;
*pbuf = '\0';