diff options
author | Harald Welte <laforge@osmocom.org> | 2020-08-06 11:56:52 +0200 |
---|---|---|
committer | Harald Welte <laforge@osmocom.org> | 2020-08-06 11:58:14 +0200 |
commit | ab8e0666f4e0fcc8c1432c5cdf97211ea69fe654 (patch) | |
tree | b5d3762e47097060157ac17f19e93604e87bfd5e | |
parent | 1f310f7b035e454f38d0de3035f0be83a38efe04 (diff) |
trau_sync: Check return value of osmo_fsm_register()
Change-Id: Ieaf524423033864a8b79ea1b04b62568d10ffbd3
Closes: CID#211593
-rw-r--r-- | src/trau/trau_sync.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/trau/trau_sync.c b/src/trau/trau_sync.c index dfd7ce4..730cf0c 100644 --- a/src/trau/trau_sync.c +++ b/src/trau/trau_sync.c @@ -524,5 +524,5 @@ static void __attribute__((constructor)) on_dso_load_sync(void) for (i = 0; i < ARRAY_SIZE(sync_patterns); i++) sync_pattern_register(&sync_patterns[i]); - osmo_fsm_register(&trau_sync_fsm); + OSMO_ASSERT(osmo_fsm_register(&trau_sync_fsm) == 0); } |