mirror of
https://github.com/Dushistov/sdcv.git
synced 2025-12-15 09:21:55 +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