packet-slsk.c: Fix potential uninitialized variable.

Change-Id: Ic1ae372bb50192d4503b1d5ba02684f44a51f968
Reviewed-on: https://code.wireshark.org/review/21113
Reviewed-by: Michael Mann <mmann78@netscape.net>
This commit is contained in:
Michael Mann 2017-04-15 13:13:24 -04:00
parent 731d6e504d
commit 3743186bcf
1 changed files with 1 additions and 1 deletions

View File

@ -608,7 +608,7 @@ static int dissect_slsk_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
proto_tree_add_item(slsk_compr_packet_tree, hf_slsk_token, uncompr_tvb, uncompr_tvb_offset, 4, ENC_LITTLE_ENDIAN);
uncompr_tvb_offset += 4;
i=0;
proto_tree_add_item_ret_uint(slsk_compr_packet_tree, hf_slsk_num_files, uncompr_tvb, uncompr_tvb_offset, 4, ENC_LITTLE_ENDIAN, &j2);
proto_tree_add_item_ret_uint(slsk_compr_packet_tree, hf_slsk_num_files, uncompr_tvb, uncompr_tvb_offset, 4, ENC_LITTLE_ENDIAN, &j);
uncompr_tvb_offset += 4;
while (i<j){
if (check_slsk_format(uncompr_tvb, uncompr_tvb_offset, "bsiisi*")) {