]> git.sur5r.net Git - cc65/blobdiff - src/ca65/symbol.c
New module strstack
[cc65] / src / ca65 / symbol.c
index a209f2209584b6963841cb34a6dfd3e0f106afd1..15c081e87abf0a2253d5dd8b451123a73f0d866a 100644 (file)
@@ -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);
         }