From: uz Date: Sat, 27 Oct 2012 15:47:49 +0000 (+0000) Subject: Fixed a problem with the last change: Sym wasn't always NULL when it should X-Git-Tag: V2.14~193 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0cbc81161c531d798b2693a896b2cc39caedd708;p=cc65 Fixed a problem with the last change: Sym wasn't always NULL when it should have been. git-svn-id: svn://svn.cc65.org/cc65/trunk@5881 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- 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 */