hunspell/hunspell-function_address.patch

23 lines
586 B
Diff

--- src/hunspell/affixmgr.cxx
+++ src/hunspell/affixmgr.cxx
@@ -2464,7 +2464,7 @@
sptr = sptr->getNextNE();
}
}
- if (result) return mystrdup(result);
+ if ( strlen(result) ) return mystrdup(result);
return NULL;
}
--- src/hunspell/hunspell.cxx
+++ src/hunspell/hunspell.cxx
@@ -1392,7 +1392,7 @@
}
}
- if (result && (*result)) {
+ if ( strlen(result) && ( *result)) {
// word reversing wrapper for complex prefixes
if (complexprefixes) {
if (utf8) reverseword_utf(result); else reverseword(result);