diff options
author | Harald Welte <laforge@osmocom.org> | 2024-03-15 14:32:30 +0100 |
---|---|---|
committer | Harald Welte <laforge@osmocom.org> | 2024-03-15 14:34:19 +0100 |
commit | 8e12612e17a7724aea2be91b737d7835fd6506fe (patch) | |
tree | bda68eadf89fe9df0c9341505a4d831f52654b63 /src/osmo_ss7_asp.c | |
parent | e099fb9d69ba6c978a911f748d3c3b1f5ea954ed (diff) |
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
Diffstat (limited to 'src/osmo_ss7_asp.c')
-rw-r--r-- | src/osmo_ss7_asp.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ static int xua_cli_read_cb(struct osmo_stream_cli *conn, struct msgb *msg) 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); |