diff options
author | Harald Welte <laforge@osmocom.org> | 2019-12-01 13:31:34 +0100 |
---|---|---|
committer | Harald Welte <laforge@osmocom.org> | 2019-12-01 13:46:06 +0100 |
commit | 0356e565721d53d4e598b1c6ae7f15f9a89c89b5 (patch) | |
tree | 6260bcc35523d1f22186c2544ed249d970a7a657 | |
parent | a15fbcbdf35d16a6c2407020cc764975d4644622 (diff) |
Check for osmo_fsm_register() error return value
Change-Id: I3e849b7ec8a7ed610f779dac57cc0c1d1aeb1aa5
-rw-r--r-- | src/host/trxcon/trxcon.c | 2 |
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"); |