Change in osmo-pcu[master]: csn1: packet-csn1.c:179: warning: 'pui8' may be used uninitialized in...

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
Tue Jan 28 21:34:42 UTC 2020


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

Change subject: csn1: packet-csn1.c:179: warning: 'pui8' may be used uninitialized in this function
......................................................................

csn1: packet-csn1.c:179: warning: 'pui8' may be used uninitialized in this function

Port from wireshark.git commit fd9f182f4b13a3d81b1b5c797a6e4b9d6d327fdd.

Ported-by: Pau Espin Pedrol <pespin at sysmocom.de>
Change-Id: I37f5f3732f92cd7340af8ac1e04383f3e45e7636
---
M src/csn1.cpp
1 file changed, 1 insertion(+), 1 deletion(-)

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



diff --git a/src/csn1.cpp b/src/csn1.cpp
index 9ddb9c1..1174347 100644
--- a/src/csn1.cpp
+++ b/src/csn1.cpp
@@ -147,7 +147,7 @@
 {
   gint  remaining_bits_len = ar->remaining_bits_len;
   gint  bit_offset         = ar->bit_offset;
-  guint8*  pui8;
+  guint8*  pui8 = NULL;
   guint16* pui16;
   guint32* pui32;
   guint64* pui64;

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

Gerrit-Project: osmo-pcu
Gerrit-Branch: master
Gerrit-Change-Id: I37f5f3732f92cd7340af8ac1e04383f3e45e7636
Gerrit-Change-Number: 16995
Gerrit-PatchSet: 2
Gerrit-Owner: pespin <pespin at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <axilirator at gmail.com>
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200128/9c9c3b20/attachment.htm>


More information about the gerrit-log mailing list