aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2014-06-26 09:57:13 -0400
committerEvan Huus <eapache@gmail.com>2014-06-26 14:07:31 +0000
commita09de615b4f5b666ca9e7c41a2792a0758ae7826 (patch)
treeec430a487bd4b7a718710e0a7b2c78305616fcc8 /epan/dissectors
parent7c1b5e9b7eea8012cef3a5d9525bb880103c7b20 (diff)
Fix Function call argument is an uninitialized value
Change-Id: I716e80e53477edd419164c61937800795a550869 Reviewed-on: https://code.wireshark.org/review/2651 Reviewed-by: Michael Mann <mmann78@netscape.net> Reviewed-by: Evan Huus <eapache@gmail.com>
Diffstat (limited to 'epan/dissectors')
-rw-r--r--epan/dissectors/packet-ansi_a.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/dissectors/packet-ansi_a.c b/epan/dissectors/packet-ansi_a.c
index a46f83fae6..05c3e5df6a 100644
--- a/epan/dissectors/packet-ansi_a.c
+++ b/epan/dissectors/packet-ansi_a.c
@@ -5723,7 +5723,7 @@ elem_rev_ms_info_recs(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, g
guint32 curr_offset, saved_offset, saved_offset2;
const gchar *str;
gint ett_elem_idx, idx, i;
- proto_item *item;
+ proto_item *item, *item2;
proto_tree *subtree, *subtree2;
guint8 *poctets;
@@ -5751,7 +5751,7 @@ elem_rev_ms_info_recs(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, g
subtree =
proto_tree_add_subtree_format(tree, tvb, curr_offset, -1,
- ett_elem_idx, NULL,
+ ett_elem_idx, &item,
"Information Record Type [%u]: (%u) %s",
num_recs + 1,
rec_type,
@@ -5875,7 +5875,7 @@ elem_rev_ms_info_recs(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, g
while ((oct_len - (curr_offset - saved_offset2)) > 2)
{
subtree2 = proto_tree_add_subtree_format(subtree, tvb, curr_offset, 3,
- ett_so_list, &item, "Service Option [%u]", i + 1);
+ ett_so_list, &item2, "Service Option [%u]", i + 1);
proto_tree_add_item(subtree2, hf_ansi_a_reserved_bits_8_fc, tvb, curr_offset, 1, ENC_BIG_ENDIAN);
proto_tree_add_item(subtree2, hf_ansi_a_rev_ms_info_rec_so_info_fwd_support, tvb, curr_offset, 1, ENC_BIG_ENDIAN);
@@ -5892,7 +5892,7 @@ elem_rev_ms_info_recs(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, g
"%s",
str);
- proto_item_append_text(item, " - (%u) %s", value, str);
+ proto_item_append_text(item2, " - (%u) %s", value, str);
i++;
curr_offset += 2;