diff options
author | Teodor Sigaev <teodor@sigaev.ru> | 2006-11-23 17:35:14 +0000 |
---|---|---|
committer | Teodor Sigaev <teodor@sigaev.ru> | 2006-11-23 17:35:14 +0000 |
commit | 3de2682a1eb1d1754a428735cb3f5a7e89f852cc (patch) | |
tree | b6697880a4c072bd1faf587e6edda6fd5bb7229e | |
parent | 1120c61b29c2804f921b4302769e73924c0e2893 (diff) | |
download | postgresql-3de2682a1eb1d1754a428735cb3f5a7e89f852cc.tar.gz postgresql-3de2682a1eb1d1754a428735cb3f5a7e89f852cc.zip |
Fix lowercasing while parse OO dictionary
-rw-r--r-- | contrib/tsearch2/ispell/spell.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/tsearch2/ispell/spell.c b/contrib/tsearch2/ispell/spell.c index 6eedc7f3426..66ccca4d07c 100644 --- a/contrib/tsearch2/ispell/spell.c +++ b/contrib/tsearch2/ispell/spell.c @@ -609,11 +609,11 @@ NIImportOOAffixes(IspellDict * Conf, const char *filename) pfind = lowerstr(find); pmask = lowerstr(mask); if (t_iseq(find, '0')) - *find = '\0'; + *pfind = '\0'; if (t_iseq(repl, '0')) - *repl = '\0'; + *prepl = '\0'; - NIAddAffix(Conf, flag, flagflags, mask, find, repl, isSuffix ? FF_SUFFIX : FF_PREFIX); + NIAddAffix(Conf, flag, flagflags, pmask, pfind, prepl, isSuffix ? FF_SUFFIX : FF_PREFIX); pfree(prepl); pfree(pfind); pfree(pmask); |