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

pespin gerrit-no-reply at lists.osmocom.org
Fri Jan 24 17:36:55 UTC 2020


pespin has uploaded this change for review. ( 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

Fort from wireshark.git commit fd9f182f4b13a3d81b1b5c797a6e4b9d6d327fdd.

Change-Id: I37f5f3732f92cd7340af8ac1e04383f3e45e7636
---
M src/csn1.cpp
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-pcu refs/changes/95/16995/1

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: 1
Gerrit-Owner: pespin <pespin at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200124/151e5d2b/attachment.htm>


More information about the gerrit-log mailing list