mirror of
https://github.com/Dushistov/sdcv.git
synced 2026-03-25 05:20:24 +00:00
Fix crash if dictionary has no synonyms
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user