aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaap Keuter <jaap.keuter@xs4all.nl>2007-05-12 19:54:55 +0000
committerJaap Keuter <jaap.keuter@xs4all.nl>2007-05-12 19:54:55 +0000
commitb80cb43018aa49bac3e24cabca009ca0471cd579 (patch)
treef71047eb142fd4add8595885586e8ac77c4d39a5
parent797545d2e5362923daacf93d5608bf9de6b8302e (diff)
From bug 1492: Fortify layer name presentation.
Some code cleanups. svn path=/trunk/; revision=21752
-rw-r--r--epan/dissectors/packet-frame.c10
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;