From 35b54d12bbedd61562bd9f5a3131024a166a4835 Mon Sep 17 00:00:00 2001 From: Vadim Yanitskiy Date: Sun, 14 May 2017 20:38:44 +0300 Subject: fsm_test.c: fix unreachable check Change-Id: Ic3d5da00f7ece6dbcd4c999187a5748c9331e60f --- tests/fsm/fsm_test.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } -- cgit v1.2.3