aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-dvb-tdt.c
diff options
context:
space:
mode:
authorMartin Kaiser <wireshark@kaiser.cx>2012-09-03 21:18:50 +0000
committerMartin Kaiser <wireshark@kaiser.cx>2012-09-03 21:18:50 +0000
commit677d843489766002025820172f02b669fd305040 (patch)
treebd60888d228e1b5af045acfbd23d483cdd822ffe /epan/dissectors/packet-dvb-tdt.c
parent255801374732f9d87ef2d9634bc87e7ca21d2433 (diff)
highlight only the actual bytes of EIT, SDT, TDT, TOT and BAT
minor whitespace cleanup skip initialization and 'if (tree)' where it's not required svn path=/trunk/; revision=44761
Diffstat (limited to 'epan/dissectors/packet-dvb-tdt.c')
-rw-r--r--epan/dissectors/packet-dvb-tdt.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-dvb-tdt.c b/epan/dissectors/packet-dvb-tdt.c
index 9a4c5dc036..47d259830b 100644
--- a/epan/dissectors/packet-dvb-tdt.c
+++ b/epan/dissectors/packet-dvb-tdt.c
@@ -52,9 +52,6 @@ dissect_dvb_tdt(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
col_set_str(pinfo->cinfo, COL_INFO, "Time and Date Table (TDT)");
- if (!tree)
- return;
-
ti = proto_tree_add_item(tree, proto_dvb_tdt, tvb, offset, -1, ENC_NA);
dvb_tdt_tree = proto_item_add_subtree(ti, ett_dvb_tdt);
@@ -66,6 +63,9 @@ dissect_dvb_tdt(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
proto_tree_add_time_format(dvb_tdt_tree, hf_dvb_tdt_utc_time, tvb, offset, 5, &utc_time,
"UTC Time : %s UTC", abs_time_to_str(&utc_time, ABSOLUTE_TIME_UTC, FALSE));
}
+ offset += 5;
+
+ proto_item_set_len(ti, offset);
}