forked from osmocom/wireshark
RTCP: Initialize padding_item
Declare padding_item outside the while loop and initialize it, as we want the value from the previous loop iteration when using it for expert_info. Fixes clang build warnings.
This commit is contained in:
parent
40ce72f1a8
commit
84ddbf373e
|
@ -4296,6 +4296,7 @@ dissect_rtcp( tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U
|
|||
proto_item *ti;
|
||||
proto_tree *rtcp_tree = NULL;
|
||||
guint padding_set = 0;
|
||||
proto_item *padding_item = NULL;
|
||||
gint offset = 0;
|
||||
gint total_packet_length = 0;
|
||||
guint padding_offset = 0;
|
||||
|
@ -4344,7 +4345,6 @@ dissect_rtcp( tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U
|
|||
*/
|
||||
while ( !srtcp_now_encrypted && tvb_bytes_exist( tvb, offset, 4) ) {
|
||||
guint temp_byte;
|
||||
proto_item *padding_item;
|
||||
gint elem_count;
|
||||
guint packet_type;
|
||||
gint packet_length;
|
||||
|
|
Loading…
Reference in New Issue