diff options
Diffstat (limited to 'plugins/SpellChecker/src/hunspell/csutil.cxx')
-rw-r--r-- | plugins/SpellChecker/src/hunspell/csutil.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/SpellChecker/src/hunspell/csutil.cxx b/plugins/SpellChecker/src/hunspell/csutil.cxx index cf24bc06dd..ee78edbc40 100644 --- a/plugins/SpellChecker/src/hunspell/csutil.cxx +++ b/plugins/SpellChecker/src/hunspell/csutil.cxx @@ -343,6 +343,9 @@ char * line_uniq(char * text, char breakchar) { char ** lines; int linenum = line_tok(text, &lines, breakchar); int i; + + if (linenum == 0) + return NULL; strcpy(text, lines[0]); for ( i = 1; i < linenum; i++ ) { int dup = 0; |