From 0356e565721d53d4e598b1c6ae7f15f9a89c89b5 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sun, 1 Dec 2019 13:31:34 +0100 Subject: Check for osmo_fsm_register() error return value Change-Id: I3e849b7ec8a7ed610f779dac57cc0c1d1aeb1aa5 --- src/host/trxcon/trxcon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); -- cgit v1.2.3