From 271391d21701cabf5b4ac448cd373d4e336d5e61 Mon Sep 17 00:00:00 2001 From: cuz Date: Fri, 12 Dec 2003 12:57:49 +0000 Subject: [PATCH] Fixed a bug git-svn-id: svn://svn.cc65.org/cc65/trunk@2727 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/ca65/symbol.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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); } -- 2.39.5