mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-02-23 19:39:53 +08:00
Add checking of end of line in parsing stopword list. Thanks to sharp eyes of Tom lane
This commit is contained in:
parent
debb3aa8e9
commit
66daeb074b
@ -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';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user