summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author <urmaslt@svn.abisource.com>2011-04-19 22:59:33 +0000
committer <urmaslt@svn.abisource.com>2011-04-19 22:59:33 +0000
commitc04611f122f6e1674097c38f39871c2f7a59d774 (patch)
tree094dd31dbc1e57f9e48c27fe22d4ca48eabe1283
parent7fa83de5caded4a2b0cc3c2b95025ca85180f65e (diff)
downloadenchant-c04611f122f6e1674097c38f39871c2f7a59d774.tar.gz
Fixed loading of empty word from pwl
git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@29721 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
-rw-r--r--src/pwl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pwl.c b/src/pwl.c
index ea779ba..bd5155c 100644
--- a/src/pwl.c
+++ b/src/pwl.c
@@ -331,7 +331,7 @@ static void enchant_pwl_refresh_from_file(EnchantPWL* pwl)
continue;
}
- if( line[0] != '#')
+ if( line[0] && line[0] != '#')
{
if(g_utf8_validate(line, -1, NULL))
enchant_pwl_add_to_trie(pwl, line, strlen(line));
@@ -676,7 +676,7 @@ static void enchant_pwl_case_and_denormalize_suggestions(EnchantPWL *pwl,
suggestion = g_hash_table_lookup (pwl->words_in_trie, suggs_list->suggs[i]);
suggestion_len = strlen(suggestion);
-
+
if(utf8_case_convert_function &&
!enchant_is_all_caps(suggestion, suggestion_len))
{