fix potential undefined behaviour

fix #19
This commit is contained in:
Evgeniy A. Dushistov
2017-07-04 22:30:26 +03:00
parent b4fc882f25
commit b2ced870ab
3 changed files with 9 additions and 17 deletions

View File

@@ -157,7 +157,7 @@ int main(int argc, char *argv[]) try {
});
std::list<std::string> order_list;
if (use_dict_list) {
if (use_dict_list != nullptr) {
for (auto &&x : bookname_to_ifo) {
gchar **p = get_impl(use_dict_list);
for (; *p != nullptr; ++p)