aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2018-11-09 16:24:34 +0100
committerHarald Welte <laforge@gnumonks.org>2018-11-18 20:22:41 +0000
commit2eb8814e383e285a87d843616ff2d74c1ea8faba (patch)
tree5c8fd0892d1bdc858eddec15f4597f406d199d55
parent42f59d52f8c87a2f0992aa613b7b34564dc1ef3d (diff)
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
-rw-r--r--src/osmo-bsc/gsm_timers_vty.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/osmo-bsc/gsm_timers_vty.c b/src/osmo-bsc/gsm_timers_vty.c
index 8a13259ff..de61e2453 100644
--- a/src/osmo-bsc/gsm_timers_vty.c
+++ b/src/osmo-bsc/gsm_timers_vty.c
@@ -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);
}