diff options
author | Dom Lachowicz <domlachowicz@gmail.com> | 2003-08-27 03:14:14 +0000 |
---|---|---|
committer | Dom Lachowicz <domlachowicz@gmail.com> | 2003-08-27 03:14:14 +0000 |
commit | 932de5e1b1b9162fae6e21b7fef39f6d3f77e0ef (patch) | |
tree | ce35d21e89b09a5232e15be262763329094d2161 | |
parent | 3b5f8d0fae24b5377d9fb849cd01925cf4c23f08 (diff) | |
download | enchant-932de5e1b1b9162fae6e21b7fef39f6d3f77e0ef.tar.gz |
fix ispell crasher bug
git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@20822 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
-rw-r--r-- | src/ispell/ispell_checker.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ispell/ispell_checker.cpp b/src/ispell/ispell_checker.cpp index 23500d6..439aecd 100644 --- a/src/ispell/ispell_checker.cpp +++ b/src/ispell/ispell_checker.cpp @@ -509,7 +509,8 @@ ISpellChecker::requestDictionary(const char *szLang) shortened_dict = shortened_dict.substr(0, uscore_pos); if (!loadDictionaryForLanguage (shortened_dict.c_str())) return false; - } + } else + return false; } m_bSuccessfulInit = true; |