diff options
author | Chris Maynard <Christopher.Maynard@GTECH.COM> | 2011-03-31 19:17:06 +0000 |
---|---|---|
committer | Chris Maynard <Christopher.Maynard@GTECH.COM> | 2011-03-31 19:17:06 +0000 |
commit | 67608483152aa645d6f3c1e96dc742f0b923afeb (patch) | |
tree | 5e39a9b281eacb45c03f3ee0e42c2194f7d5a6cd /epan/dissectors/packet-tnef.c | |
parent | 9e49109b285e027fea3c5483ffb1c7456967fad6 (diff) |
Fix 11 occurrences of returned pointer never used. Fixes CID's 1064-1067.
svn path=/trunk/; revision=36426
Diffstat (limited to 'epan/dissectors/packet-tnef.c')
-rw-r--r-- | epan/dissectors/packet-tnef.c | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/epan/dissectors/packet-tnef.c b/epan/dissectors/packet-tnef.c index 2208369b49..dfa6a112d7 100644 --- a/epan/dissectors/packet-tnef.c +++ b/epan/dissectors/packet-tnef.c @@ -250,7 +250,7 @@ static gint dissect_counted_values(tvbuff_t *tvb, gint offset, int hf_id, packe guint32 length, count, i; count = tvb_get_letohl(tvb, offset); - item = proto_tree_add_item(tree, hf_tnef_values_count, tvb, offset, 4, TRUE); + proto_tree_add_item(tree, hf_tnef_values_count, tvb, offset, 4, TRUE); if(count > 1) { if(single) { @@ -309,30 +309,29 @@ static gint dissect_counted_address(tvbuff_t *tvb, gint offset, packet_info *pin static void dissect_DTR(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree) { - proto_item *item; gint offset; offset = 0; - item = proto_tree_add_item(tree, hf_tnef_attribute_date_year, tvb, offset, 2, TRUE); + proto_tree_add_item(tree, hf_tnef_attribute_date_year, tvb, offset, 2, TRUE); offset +=2; - item = proto_tree_add_item(tree, hf_tnef_attribute_date_month, tvb, offset, 2, TRUE); + proto_tree_add_item(tree, hf_tnef_attribute_date_month, tvb, offset, 2, TRUE); offset +=2; - item = proto_tree_add_item(tree, hf_tnef_attribute_date_day, tvb, offset, 2, TRUE); + proto_tree_add_item(tree, hf_tnef_attribute_date_day, tvb, offset, 2, TRUE); offset +=2; - item = proto_tree_add_item(tree, hf_tnef_attribute_date_hour, tvb, offset, 2, TRUE); + proto_tree_add_item(tree, hf_tnef_attribute_date_hour, tvb, offset, 2, TRUE); offset +=2; - item = proto_tree_add_item(tree, hf_tnef_attribute_date_minute, tvb, offset, 2, TRUE); + proto_tree_add_item(tree, hf_tnef_attribute_date_minute, tvb, offset, 2, TRUE); offset +=2; - item = proto_tree_add_item(tree, hf_tnef_attribute_date_second, tvb, offset, 2, TRUE); + proto_tree_add_item(tree, hf_tnef_attribute_date_second, tvb, offset, 2, TRUE); offset +=2; - item = proto_tree_add_item(tree, hf_tnef_attribute_date_day_of_week, tvb, offset, 2, TRUE); + proto_tree_add_item(tree, hf_tnef_attribute_date_day_of_week, tvb, offset, 2, TRUE); offset +=2; } @@ -360,7 +359,7 @@ static void dissect_mapiprops(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tre pinfo->private_data = &di; /* first the count */ - item = proto_tree_add_item(tree, hf_tnef_mapi_props_count, tvb, offset, 4, TRUE); + proto_tree_add_item(tree, hf_tnef_mapi_props_count, tvb, offset, 4, TRUE); count = tvb_get_letohl(tvb, offset); offset += 4; @@ -490,7 +489,7 @@ static void dissect_mapiprops(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tre if((padding = (4 - (offset - start_offset) % 4)) != 4) { /* we need to pad */ - item = proto_tree_add_item(prop_tree, hf_tnef_property_padding, tvb, offset, padding, TRUE); + proto_tree_add_item(prop_tree, hf_tnef_property_padding, tvb, offset, padding, TRUE); offset += padding; } @@ -538,7 +537,7 @@ static void dissect_tnef(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) } - item = proto_tree_add_item(tree, hf_tnef_key, tvb, offset, 2, TRUE); + proto_tree_add_item(tree, hf_tnef_key, tvb, offset, 2, TRUE); offset += 2; while(tvb_length_remaining(tvb, offset) > 9 ) { /* there must be at least a level (1), tag (4) and length (4) to be valid */ |