pespin has submitted this change. (
https://gerrit.osmocom.org/c/libosmo-sccp/+/36301?usp=email )
Change subject: osmo_ss7_asp: fix uninitialized return value in xua_cli_read_cb()
......................................................................
osmo_ss7_asp: fix uninitialized return value in xua_cli_read_cb()
libosmo-sccp/src/osmo_ss7_asp.c:1019:16: error: 'rc' may be used uninitialized
[-Werror=maybe-uninitialized]
1019 | return rc;
Change-Id: I3b1ace12eb5bb6d6b37f3374bf9986026796e166
---
M src/osmo_ss7_asp.c
1 file changed, 13 insertions(+), 1 deletion(-)
Approvals:
Jenkins Builder: Verified
pespin: Looks good to me, approved
diff --git a/src/osmo_ss7_asp.c b/src/osmo_ss7_asp.c
index 034f60d..92b3a5b 100644
--- a/src/osmo_ss7_asp.c
+++ b/src/osmo_ss7_asp.c
@@ -980,7 +980,7 @@
struct osmo_ss7_asp *asp = osmo_stream_cli_get_data(conn);
unsigned int ppid;
int flags;
- int rc;
+ int rc = 0;
flags = msgb_sctp_msg_flags(msg);
--
To view, visit
https://gerrit.osmocom.org/c/libosmo-sccp/+/36301?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: libosmo-sccp
Gerrit-Branch: master
Gerrit-Change-Id: I3b1ace12eb5bb6d6b37f3374bf9986026796e166
Gerrit-Change-Number: 36301
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: merged