aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-q931.c
diff options
context:
space:
mode:
authorAndersBroman <anders.broman@ericsson.com>2014-06-04 09:33:53 +0200
committerAnders Broman <a.broman58@gmail.com>2014-06-04 07:35:40 +0000
commit963a498c1102a535f3d42bdadb9d8ba49889aac9 (patch)
tree71dbe8884adae06a8b8cb7b539e15f7d4aca8be5 /epan/dissectors/packet-q931.c
parentc44c15363fdfa5b75764d3c54277a439c8b8f1c7 (diff)
Fix packet-q931.c:604:25: error: 'ti' may be used uninitialized in this function [-Werror=uninitialized]
Change-Id: I936a56aec7ff448d403f84a370b3cd3e9b73a718 Reviewed-on: https://code.wireshark.org/review/1945 Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-q931.c')
-rw-r--r--epan/dissectors/packet-q931.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/epan/dissectors/packet-q931.c b/epan/dissectors/packet-q931.c
index f3ad3740d3..09fba7e87f 100644
--- a/epan/dissectors/packet-q931.c
+++ b/epan/dissectors/packet-q931.c
@@ -2494,9 +2494,8 @@ dissect_q931_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
col_set_str(pinfo->cinfo, COL_PROTOCOL, "Q.931");
prot_discr = tvb_get_guint8(tvb, offset);
+ ti = proto_tree_add_item(tree, proto_q931, tvb, offset, -1, ENC_NA);
if (tree) {
- ti = proto_tree_add_item(tree, proto_q931, tvb, offset, -1,
- ENC_NA);
q931_tree = proto_item_add_subtree(ti, ett_q931);
dissect_q931_protocol_discriminator(tvb, offset, q931_tree);