summaryrefslogtreecommitdiff
path: root/conf/conf.c
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2022-05-02 20:29:03 +0200
committerMaria Matejka <mq@ucw.cz>2022-05-04 15:38:42 +0200
commit165156beeb2926472bbceca3c103aacc3f81a8cc (patch)
tree483ee32846c8758ded4b8c4bfeea3d3ae07a21d2 /conf/conf.c
parentcf07d8ad79273a3bbf0617c17e438602e4b64ece (diff)
Conf: Symbols are properly scoped
Now there is a persistent root symbol scope and all scopes have their symbol hashes to store local symbols and not leak any symbol out.
Diffstat (limited to 'conf/conf.c')
-rw-r--r--conf/conf.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/conf/conf.c b/conf/conf.c
index 0230053b..580a6472 100644
--- a/conf/conf.c
+++ b/conf/conf.c
@@ -168,7 +168,6 @@ int
cli_parse(struct config *c)
{
int done = 0;
- c->fallback = config;
new_config = c;
cfg_mem = c->mem;
if (setjmp(conf_jmpbuf))
@@ -179,7 +178,6 @@ cli_parse(struct config *c)
done = 1;
cleanup:
- c->fallback = NULL;
new_config = NULL;
cfg_mem = NULL;
return done;
@@ -522,7 +520,6 @@ order_shutdown(int gr)
init_list(&c->tables);
init_list(&c->symbols);
memset(c->def_tables, 0, sizeof(c->def_tables));
- HASH_INIT(c->sym_hash, c->pool, 4);
c->shutdown = 1;
c->gr_down = gr;