fix error checks in get_sch_from_sym()

This commit is contained in:
stefan schippers 2025-01-11 14:10:02 +01:00
parent 5161f3dc0a
commit 02d992d2a6
1 changed files with 1 additions and 1 deletions

View File

@ -2087,7 +2087,7 @@ void get_sch_from_sym(char *filename, xSymbol *sym, int inst, int fallback)
my_strncpy(filename, "", PATH_MAX);
if(inst != -1 || inst >= xctx->instances) {
if(inst >= xctx->instances) {
dbg(0, "get_sch_from_sym() error: called with invalid inst=%d\n", inst);
return;
}