aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--contrib/tsearch/morph.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/tsearch/morph.c b/contrib/tsearch/morph.c
index 4394448737d..3acbef98623 100644
--- a/contrib/tsearch/morph.c
+++ b/contrib/tsearch/morph.c
@@ -173,6 +173,10 @@ lemmatize(char *word, int *len, int type)
/* word is stopword */
return NULL;
}
+ else if (nd == BYLOCALE)
+ {
+ continue; /* no dict for current locale */
+ }
else
{
dict = &dicts[nd];