Harald Welte has submitted this change and it was merged. ( 
https://gerrit.osmocom.org/11710 )

Change subject: osmo-bsc: gsm_timers_vty: Set global T_defs during vty_init
......................................................................

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
---
M src/osmo-bsc/gsm_timers_vty.c
1 file changed, 1 insertion(+), 0 deletions(-)

Approvals:
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/src/osmo-bsc/gsm_timers_vty.c b/src/osmo-bsc/gsm_timers_vty.c
index 8a13259..de61e24 100644
--- a/src/osmo-bsc/gsm_timers_vty.c
+++ b/src/osmo-bsc/gsm_timers_vty.c
@@ -102,6 +102,7 @@
 /* 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);
 }

--
To view, visit https://gerrit.osmocom.org/11710
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: Ieeb27fdb06c965fa6b70aeb0f3b3f5169b1f2012
Gerrit-Change-Number: 11710
Gerrit-PatchSet: 2
Gerrit-Owner: Pau Espin Pedrol <pes...@sysmocom.de>
Gerrit-Reviewer: Harald Welte <lafo...@gnumonks.org>
Gerrit-Reviewer: Jenkins Builder (1000002)

Reply via email to