diff --git a/source/compiler/sc5.c b/source/compiler/sc5.c index c6c25bb..a9088d2 100644 --- a/source/compiler/sc5.c +++ b/source/compiler/sc5.c @@ -541,6 +541,8 @@ static int find_closest_symbol_table(const char *name,const symbol *root,int sym assert(0); } /* switch */ funcdisplayname(symname,sym->name); + if (symname[0] == '\0') + continue; dist=levenshtein_distance(name,symname); if (dist>max_dist || dist>=closest_dist) continue;