diff options
author | jake <jake@f5534014-38df-0310-8fa8-9805f1628bb7> | 2007-05-12 19:54:55 +0000 |
---|---|---|
committer | jake <jake@f5534014-38df-0310-8fa8-9805f1628bb7> | 2007-05-12 19:54:55 +0000 |
commit | 449bb111a734d5bef2f890102e2d0a6ff2f1b9da (patch) | |
tree | f71047eb142fd4add8595885586e8ac77c4d39a5 /epan/dissectors | |
parent | 8bf450181cf5116dee326d09dd88f5aaa0599d2e (diff) |
From bug 1492: Fortify layer name presentation.
Some code cleanups.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21752 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors')
-rw-r--r-- | epan/dissectors/packet-frame.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/epan/dissectors/packet-frame.c b/epan/dissectors/packet-frame.c index c44911293e..8e5859a095 100644 --- a/epan/dissectors/packet-frame.c +++ b/epan/dissectors/packet-frame.c @@ -340,13 +340,13 @@ dissect_frame(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree) } ENDTRY; - if (tree) { + if (tree && pinfo->layer_names) { proto_item_append_string(ti, pinfo->layer_names->str); g_string_free(pinfo->layer_names, TRUE); pinfo->layer_names = NULL; } - call_all_postdissectors(tvb,pinfo,parent_tree); + call_all_postdissectors(tvb, pinfo, parent_tree); tap_queue_packet(frame_tap, pinfo, NULL); @@ -464,7 +464,7 @@ proto_register_frame(void) { "Arrival Time", "frame.time", FT_ABSOLUTE_TIME, BASE_NONE, NULL, 0x0, "Absolute time when this frame was captured", HFILL }}, - { &hf_frame_time_invalid, + { &hf_frame_time_invalid, { "Arrival Timestamp invalid", "frame.time_invalid", FT_NONE, BASE_NONE, NULL, 0x0, "The timestamp from the capture is out of the valid range", HFILL }}, @@ -529,10 +529,10 @@ proto_register_frame(void) "The frame matched the coloring rule with this name", HFILL }}, { &hf_frame_color_filter_text, { "Coloring Rule String", "frame.coloring_rule.string", FT_STRING, 0, NULL, 0x0, - "The frame matched this coloring rule string", HFILL }}, + "The frame matched this coloring rule string", HFILL }} }; static gint *ett[] = { - &ett_frame, + &ett_frame }; module_t *frame_module; |