]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Conf: Fix 'show symbols'
authorOndrej Zajicek <santiago@crfreenet.org>
Wed, 4 Oct 2023 18:14:12 +0000 (20:14 +0200)
committerOndrej Zajicek <santiago@crfreenet.org>
Wed, 4 Oct 2023 18:16:13 +0000 (20:16 +0200)
Seems like the root scope was not marked as active.

conf/cf-lex.l

index 5fb88e03d39578f3efe6d2b16e3c657d2c1cc85c..0fa4628a4ff90e08235f2561958ad6844ba3125f 100644 (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;