summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2017-05-14 20:38:44 +0300
committerHarald Welte <laforge@gnumonks.org>2017-05-15 12:51:15 +0000
commit35b54d12bbedd61562bd9f5a3131024a166a4835 (patch)
tree8bd1b08c13bc29243b42e56377c55f5e3ec86f40 /tests
parenta5bb2b9586aee6114614eed7d9b642dc03ad39fd (diff)
fsm_test.c: fix unreachable check
Change-Id: Ic3d5da00f7ece6dbcd4c999187a5748c9331e60f
Diffstat (limited to 'tests')
-rw-r--r--tests/fsm/fsm_test.c4
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;
}