diff --git a/dic/compdic.cpp b/dic/compdic.cpp index 4cc8666..bd4a0f8 100644 --- a/dic/compdic.cpp +++ b/dic/compdic.cpp @@ -151,6 +151,9 @@ void CompDic::loadWordList(const string &iFileName, vector &oWordList) { line = line.substr(3); } + // Ignore empty lines + if (line == "") + continue; oWordList.push_back(readFromUTF8(line.data(), line.size(), "loadWordList")); }