osmo-bsc: gsm_timers_vty: Set global T_defs during vty_init

Otherwise any use of functions in gsm_timers_vty.c will fail because
g_vty_T_defs is never set (so it is NULL).

Change-Id: Ieeb27fdb06c965fa6b70aeb0f3b3f5169b1f2012
This commit is contained in:
Pau Espin 2018-11-09 16:24:34 +01:00 committed by Harald Welte
parent 42f59d52f8
commit 2eb8814e38
1 changed files with 1 additions and 0 deletions

View File

@ -102,6 +102,7 @@ DEFUN(show_timer, show_timer_cmd,
/* Install GSM timer configuration commands in the VTY. */
void T_defs_vty_init(struct T_def *T_defs, int cfg_parent_node)
{
g_vty_T_defs = T_defs;
install_element_ve(&show_timer_cmd);
install_element(cfg_parent_node, &cfg_timer_cmd);
}