diff options
-rw-r--r-- | contrib/tsearch2/stopword.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/tsearch2/stopword.c b/contrib/tsearch2/stopword.c index 582932e84be..2165bb68ddc 100644 --- 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'; |