summaryrefslogtreecommitdiff
path: root/plugins/SpellChecker/src/hunspell/csutil.cxx
diff options
context:
space:
mode:
authorRozhuk Ivan <rozhuk.im@gmail.com>2014-11-26 23:48:18 +0000
committerRozhuk Ivan <rozhuk.im@gmail.com>2014-11-26 23:48:18 +0000
commitf19ed36b66a807420c771a467a954114f027384c (patch)
tree1c61894875576ee9cae4b37d448a6a671585fa9d /plugins/SpellChecker/src/hunspell/csutil.cxx
parent08e744c5f087a8e693d160c527097a9f6a5bf712 (diff)
SpellChecker: code cleanup
git-svn-id: http://svn.miranda-ng.org/main/trunk@11110 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SpellChecker/src/hunspell/csutil.cxx')
-rw-r--r--plugins/SpellChecker/src/hunspell/csutil.cxx3
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;