packet-rohc.c: In function 'dissect_rohc_ir_rtp_profile_dynamic':
packet-rohc.c:285: warning: 'val_len' may be used uninitialized in this function
packet-rohc.c:186: warning: 'num_bits' may be used uninitialized in this function
packet-rohc.c:186: note: 'num_bits' was declared here

svn path=/trunk/; revision=36663
This commit is contained in:
Anders Broman 2011-04-16 12:28:03 +00:00
parent ffae0f912d
commit 6a0cbfbce8
1 changed files with 2 additions and 3 deletions

View File

@ -183,7 +183,7 @@ static guint32
get_self_describing_var_len_val(tvbuff_t *tvb, proto_tree *tree, int offset, int hf_index, guint8 *val_len){
guint8 oct;
guint32 val;
int num_bits, bit_offset = offset <<3;
int num_bits = 0, bit_offset = offset <<3;
oct = tvb_get_guint8(tvb, offset);
if((oct&0x80)==0){
@ -282,7 +282,7 @@ dissect_rohc_ir_rtp_profile_dynamic(tvbuff_t *tvb, proto_tree *tree, int offset,
proto_item *item;
proto_tree *sub_tree;
guint8 oct, rx, cc, val_len;
guint8 oct, rx, cc, val_len = 0;
int i, start_offset;
start_offset = offset;
@ -399,7 +399,6 @@ dissect_rohc_ir_rtp_profile_dynamic(tvbuff_t *tvb, proto_tree *tree, int offset,
/* Time_Stride encoded as
* 4.5.6. Self-describing variable-length values
*/
val_len = 0;
get_self_describing_var_len_val(tvb, sub_tree, offset, hf_rohc_rtp_time_stride, &val_len);
offset = offset + val_len;
}