[PATCH] openbsc[master]: sgsn_test: Fix missing = in == type 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/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Sat Nov 26 14:08:47 UTC 2016


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

sgsn_test: Fix missing = in == type check

Change-Id: I696a7d25d2f4d19922e05a7e83c4aeec5c44fb07
Fixes: Coverity CID 135156
---
M openbsc/tests/sgsn/sgsn_test.c
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.osmocom.org:29418/openbsc refs/changes/22/1322/1

diff --git a/openbsc/tests/sgsn/sgsn_test.c b/openbsc/tests/sgsn/sgsn_test.c
index 789817c..e7b7458 100644
--- a/openbsc/tests/sgsn/sgsn_test.c
+++ b/openbsc/tests/sgsn/sgsn_test.c
@@ -627,7 +627,7 @@
 	/* Inject InsertSubscrData GSUP message */
 	last_updated_subscr = NULL;
 	rc = rx_gsup_message(insert_data_req, sizeof(insert_data_req));
-	OSMO_ASSERT(rc = -ENOTSUP);	/* not connected */
+	OSMO_ASSERT(rc == -ENOTSUP);	/* not connected */
 	OSMO_ASSERT(last_updated_subscr == s1);
 
 	/* Inject DeleteSubscrData GSUP message */

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I696a7d25d2f4d19922e05a7e83c4aeec5c44fb07
Gerrit-PatchSet: 1
Gerrit-Project: openbsc
Gerrit-Branch: master
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>



More information about the gerrit-log mailing list