From abae806efdf6ac5f919c93057dd8df1faff1058c Mon Sep 17 00:00:00 2001 From: Ondrej Zajicek Date: Wed, 4 Oct 2023 20:14:12 +0200 Subject: [PATCH] Conf: Fix 'show symbols' Seems like the root scope was not marked as active. --- conf/cf-lex.l | 1 + 1 file changed, 1 insertion(+) diff --git a/conf/cf-lex.l b/conf/cf-lex.l index 5fb88e03..0fa4628a 100644 --- a/conf/cf-lex.l +++ b/conf/cf-lex.l @@ -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;