]> git.sur5r.net Git - cc65/commitdiff
Fixed a problem with the last change: Sym wasn't always NULL when it should
authoruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sat, 27 Oct 2012 15:47:49 +0000 (15:47 +0000)
committeruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sat, 27 Oct 2012 15:47:49 +0000 (15:47 +0000)
have been.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5881 b7a2c559-68d2-44c3-8de9-860c34a00d81

src/ca65/symtab.c

index eaaab444efd3b81a605ed1ca90e2185235d94f1d..116e7a0c39f19a9f86cf4b2428069f9ba120e699 100644 (file)
@@ -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 */