mirror of
https://github.com/Dushistov/sdcv.git
synced 2025-12-16 18:01:54 +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;
|
bool bFound = false;
|
||||||
glong iTo = synlist.size() - 2;
|
glong iTo = synlist.size() - 2;
|
||||||
|
if (iTo <0) return false;
|
||||||
|
|
||||||
if (stardict_strcmp(str, get_key(0)) < 0) {
|
if (stardict_strcmp(str, get_key(0)) < 0) {
|
||||||
idx = 0;
|
idx = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user