diff options
-rw-r--r-- | tests/fsm/fsm_test.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/fsm/fsm_test.c b/tests/fsm/fsm_test.c index eea8b225..3bcb7d49 100644 --- a/tests/fsm/fsm_test.c +++ b/tests/fsm/fsm_test.c @@ -95,8 +95,10 @@ static struct ctrl_handle *g_ctrl; static struct ctrl_cmd *exec_ctrl_cmd(const char *cmdstr) { struct ctrl_cmd *cmd; - return ctrl_cmd_exec_from_string(g_ctrl, cmdstr); + + cmd = ctrl_cmd_exec_from_string(g_ctrl, cmdstr); OSMO_ASSERT(cmd); + return cmd; } |