summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2019-12-01 13:31:34 +0100
committerHarald Welte <laforge@osmocom.org>2019-12-01 13:46:06 +0100
commit0356e565721d53d4e598b1c6ae7f15f9a89c89b5 (patch)
tree6260bcc35523d1f22186c2544ed249d970a7a657
parenta15fbcbdf35d16a6c2407020cc764975d4644622 (diff)
Check for osmo_fsm_register() error return value
-rw-r--r--src/host/trxcon/trxcon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/host/trxcon/trxcon.c b/src/host/trxcon/trxcon.c
index d49b71fa..ecee518c 100644
--- a/src/host/trxcon/trxcon.c
+++ b/src/host/trxcon/trxcon.c
@@ -295,7 +295,7 @@ int main(int argc, char **argv)
}
/* Allocate the application state machine */
- osmo_fsm_register(&trxcon_fsm_def);
+ OSMO_ASSERT(osmo_fsm_register(&trxcon_fsm_def) == 0);
trxcon_fsm = osmo_fsm_inst_alloc(&trxcon_fsm_def, tall_trxcon_ctx,
NULL, LOGL_DEBUG, "main");