Fix crash if dictionary has no synonyms

This commit is contained in:
Jeff Doozan
2020-12-19 18:37:15 -05:00
parent 8e9f72ae57
commit cc7bcb8b73

View File

@@ -874,6 +874,7 @@ bool SynFile::lookup(const char *str, glong &idx)
{
bool bFound = false;
glong iTo = synlist.size() - 2;
if (iTo <0) return false;
if (stardict_strcmp(str, get_key(0)) < 0) {
idx = 0;