summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2014-05-18 08:48:07 (GMT)
committerRemko Tronçon <git@el-tramo.be>2014-05-18 08:48:07 (GMT)
commit13bcb579fe1ead0a5dca3defdef73023463c51e4 (patch)
treedf975b9693ad426718f483f35dd32d776f0bf518 /SwifTools
parenta2bd9984a31e426e2ba263e68e6dc0733970026c (diff)
downloadswift-contrib-13bcb579fe1ead0a5dca3defdef73023463c51e4.zip
swift-contrib-13bcb579fe1ead0a5dca3defdef73023463c51e4.tar.bz2
Fix spell check leaks and errors
Change-Id: Ied0ac4abb21ef1720411fdbc61e7a687eee3afd1
Diffstat (limited to 'SwifTools')
-rw-r--r--SwifTools/HunspellChecker.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/SwifTools/HunspellChecker.cpp b/SwifTools/HunspellChecker.cpp
index ecd352e..e9bc558 100644
--- a/SwifTools/HunspellChecker.cpp
+++ b/SwifTools/HunspellChecker.cpp
@@ -26,7 +26,7 @@ bool HunspellChecker::isCorrect(const std::string& word) {
}
void HunspellChecker::getSuggestions(const std::string& word, std::vector<std::string>& list) {
- char **suggestList;
+ char **suggestList = NULL;
int words_returned;
if (!word.empty()) {
words_returned = speller_->suggest(&suggestList, word.c_str());