diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2016-06-08 22:54:54 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2016-06-08 22:54:54 +0300 |
commit | 98c043ed84ea6fe877561da25e1bf94f68374a67 (patch) | |
tree | d07e306e3dbb831469804191c53d71e3aefb1cc9 /symbol.c | |
parent | af38e153c3de3710b7e828f52869b446c73c808d (diff) | |
download | egawk-98c043ed84ea6fe877561da25e1bf94f68374a67.tar.gz egawk-98c043ed84ea6fe877561da25e1bf94f68374a67.tar.bz2 egawk-98c043ed84ea6fe877561da25e1bf94f68374a67.zip |
Bug fix in symbol lookup, could break watchpoints.
Diffstat (limited to 'symbol.c')
-rw-r--r-- | symbol.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -117,7 +117,9 @@ lookup(const char *name) } unref(tmp); - return n; /* NULL or new place */ + if (n == NULL || n->type == Node_val) /* non-variable in SYMTAB */ + return NULL; + return n; /* new place */ } /* make_params --- allocate function parameters for the symbol table */ |