diff --git a/src/ca65/symtab.c b/src/ca65/symtab.c index eaaab444e..116e7a0c3 100644 --- a/src/ca65/symtab.c +++ b/src/ca65/symtab.c @@ -443,6 +443,8 @@ SymEntry* SymFindAny (SymTable* Scope, const StrBuf* Name) /* Found, return it */ break; } + } else { + Sym = 0; } /* Not found, search in the parent scope, if we have one */