[PATCH] libosmocore[master]: fsm_test.c: fix unreachable check

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Vadim Yanitskiy gerrit-no-reply at lists.osmocom.org
Sun May 14 17:39:14 UTC 2017


Review at  https://gerrit.osmocom.org/2591

fsm_test.c: fix unreachable check

Change-Id: Ic3d5da00f7ece6dbcd4c999187a5748c9331e60f
---
M tests/fsm/fsm_test.c
1 file changed, 3 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/91/2591/1

diff --git a/tests/fsm/fsm_test.c b/tests/fsm/fsm_test.c
index eea8b22..3bcb7d4 100644
--- a/tests/fsm/fsm_test.c
+++ b/tests/fsm/fsm_test.c
@@ -95,8 +95,10 @@
 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;
 }
 

-- 
To view, visit https://gerrit.osmocom.org/2591
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic3d5da00f7ece6dbcd4c999187a5748c9331e60f
Gerrit-PatchSet: 1
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Owner: Vadim Yanitskiy <axilirator at gmail.com>



More information about the gerrit-log mailing list