From: cuz Date: Fri, 12 Dec 2003 12:57:49 +0000 (+0000) Subject: Fixed a bug X-Git-Tag: V2.12.0~1077 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=271391d21701cabf5b4ac448cd373d4e336d5e61;p=cc65 Fixed a bug git-svn-id: svn://svn.cc65.org/cc65/trunk@2727 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/ca65/symbol.c b/src/ca65/symbol.c index a209f2209..15c081e87 100644 --- a/src/ca65/symbol.c +++ b/src/ca65/symbol.c @@ -181,11 +181,8 @@ SymEntry* ParseScopedSymName (int AllocNew) /* Search for the symbol and return it. If no scope was specified, * search also in the upper levels. */ - if (NoScope) { + if (NoScope && !AllocNew) { Sym = SymFindAny (Scope, Ident); - if (Sym == 0 && AllocNew) { - Sym = SymFind (Scope, Ident, AllocNew); - } } else { Sym = SymFind (Scope, Ident, AllocNew); }