fsm_test.c: fix unreachable check

Change-Id: Ic3d5da00f7ece6dbcd4c999187a5748c9331e60f
This commit is contained in:
Vadim Yanitskiy 2017-05-14 20:38:44 +03:00 committed by Harald Welte
parent a5bb2b9586
commit 35b54d12bb
1 changed files with 3 additions and 1 deletions

View File

@ -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;
}