0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-11-08 12:18:42 +00:00

Conf: Fix 'show symbols'

Seems like the root scope was not marked as active.
This commit is contained in:
Ondrej Zajicek 2023-10-04 20:14:12 +02:00
parent ab47c2ae46
commit abae806efd

View File

@ -739,6 +739,7 @@ cf_lex_init(int is_cli, struct config *c)
BEGIN(INITIAL);
c->root_scope = c->current_scope = cfg_allocz(sizeof(struct sym_scope));
c->root_scope->active = 1;
if (is_cli)
c->current_scope->next = config->root_scope;