Change in osmo-hnodeb[master]: llsk_audio: Fix false positive about uninitialized var access

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/.

laforge gerrit-no-reply at lists.osmocom.org
Fri Dec 17 17:09:07 UTC 2021


laforge has submitted this change. ( https://gerrit.osmocom.org/c/osmo-hnodeb/+/26603 )

Change subject: llsk_audio: Fix false positive about uninitialized var access
......................................................................

llsk_audio: Fix false positive about uninitialized var access

Let's make gcc in Ubuntu 21.10 happy.

Change-Id: If085b0ca0e1d3e7237696eb67cf6301ea84793e0
---
M src/osmo-hnodeb/llsk_audio.c
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Jenkins Builder: Verified
  osmith: Looks good to me, approved
  laforge: Looks good to me, approved



diff --git a/src/osmo-hnodeb/llsk_audio.c b/src/osmo-hnodeb/llsk_audio.c
index 7ce5c09..a600c3c 100644
--- a/src/osmo-hnodeb/llsk_audio.c
+++ b/src/osmo-hnodeb/llsk_audio.c
@@ -152,7 +152,7 @@
 	char rem_addrstr[INET6_ADDRSTRLEN+32];
 	struct osmo_sockaddr rem_osa = {0};
 	union u_addr loc_uaddr = {0};
-	uint16_t loc_port;
+	uint16_t loc_port = 0;
 	struct rtp_conn *conn = NULL;
 
 	rc = ll_addr2osa(ce_req->remote_rtp_address_type, &ce_req->remote_rtp_addr, ce_req->remote_rtp_port, &rem_osa);

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-hnodeb/+/26603
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-hnodeb
Gerrit-Branch: master
Gerrit-Change-Id: If085b0ca0e1d3e7237696eb67cf6301ea84793e0
Gerrit-Change-Number: 26603
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-Reviewer: osmith <osmith at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20211217/0192f25b/attachment.htm>


More information about the gerrit-log mailing list