summaryrefslogtreecommitdiff
path: root/providers
diff options
context:
space:
mode:
authorReuben Thomas <rrt@sc3d.org>2017-07-24 22:56:24 +0100
committerReuben Thomas <rrt@sc3d.org>2017-07-24 22:57:09 +0100
commitba76f90afba3c495549f1925bab38987d4556b2f (patch)
tree7c0c3baeb3a2b68fb699d3b50a49865c12826e8e /providers
parentf73168e013ed18f6210d09fc12f1c215984d6a75 (diff)
downloadenchant-ba76f90afba3c495549f1925bab38987d4556b2f.tar.gz
AppleSpell checker: fix uninitialised nresult in NSArrayToCArray
Diffstat (limited to 'providers')
-rw-r--r--providers/applespell_checker.mm1
1 files changed, 1 insertions, 0 deletions
diff --git a/providers/applespell_checker.mm b/providers/applespell_checker.mm
index f2ec99e..912e265 100644
--- a/providers/applespell_checker.mm
+++ b/providers/applespell_checker.mm
@@ -125,6 +125,7 @@ void AppleSpellChecker::parseConfigFile (const char * configFile)
char **AppleSpellChecker::NSArrayToCArray (NSArray<NSString *> *array, size_t *nresult)
{
char ** result = 0;
+ *nresult = 0;
if (unsigned int count = [array count])
{