From dd003417c0a59bc866893d1bcef7a49e4be87492 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Teuli=C3=A8re?= Date: Sat, 12 Jun 2010 15:59:07 +0000 Subject: [PATCH] Ignore empty lines in the word list, instead of throwing an exception --- dic/compdic.cpp | 3 +++ 1 file changed, 3 insertions(+) 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")); }