forked from osmocom/wireshark
Fix maybe-uninitialized warnings
When compiling the current wireshark master branch (with the default project provided CFLAGS) on Fedora 35, GCC 11.2.1 prints a few `-Wmaybe-uninitialized` warnings. This change fixes those.
This commit is contained in:
parent
848f4f8e97
commit
d8e33efb3c
|
@ -387,6 +387,8 @@ drop_fragments(packet_info *pinfo) {
|
|||
case P2P_DIR_UNKNOWN:
|
||||
packet_direction = 0x0;
|
||||
break;
|
||||
default:
|
||||
packet_direction = 0x0;
|
||||
}
|
||||
|
||||
if (pinfo->rec->presence_flags & WTAP_HAS_INTERFACE_ID)
|
||||
|
@ -438,6 +440,8 @@ dissect_preemption(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint32
|
|||
case P2P_DIR_UNKNOWN:
|
||||
packet_direction = 0x0;
|
||||
break;
|
||||
default:
|
||||
packet_direction = 0x0;
|
||||
}
|
||||
|
||||
if (pinfo->rec->presence_flags & WTAP_HAS_INTERFACE_ID)
|
||||
|
|
|
@ -357,7 +357,7 @@ dissect_frame(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, void*
|
|||
dissector_handle_t dissector_handle;
|
||||
fr_foreach_t fr_user_data;
|
||||
struct nflx_tcpinfo tcpinfo;
|
||||
gboolean tcpinfo_filled;
|
||||
gboolean tcpinfo_filled = false;
|
||||
|
||||
tree=parent_tree;
|
||||
|
||||
|
|
Loading…
Reference in New Issue