From 2f642899f1eb283ea5c40143b98112eb9fc19568 Mon Sep 17 00:00:00 2001 From: Y_Less Date: Wed, 25 Sep 2019 19:44:01 +0200 Subject: [PATCH] Fix #451 --- source/compiler/sc5.c | 2 ++ 1 file changed, 2 insertions(+) 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;