summaryrefslogtreecommitdiff
path: root/epan/dissectors/packet-fix.c
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2013-06-14 01:02:11 +0000
committerMichael Mann <mmann78@netscape.net>2013-06-14 01:02:11 +0000
commit0f0c111119811cf1c6c9353efdaaef302aca5930 (patch)
tree1184b3876ae3b638c401313def0c8172b475b3f0 /epan/dissectors/packet-fix.c
parentaf02ac36ac6dd2d6b97c904db7cc26e8395230e0 (diff)
downloadwireshark-0f0c111119811cf1c6c9353efdaaef302aca5930.tar.gz
Remove check_col() and the occasional tree.
svn path=/trunk/; revision=49920
Diffstat (limited to 'epan/dissectors/packet-fix.c')
-rw-r--r--epan/dissectors/packet-fix.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/epan/dissectors/packet-fix.c b/epan/dissectors/packet-fix.c
index b4044c43d0..2b33b55c37 100644
--- a/epan/dissectors/packet-fix.c
+++ b/epan/dissectors/packet-fix.c
@@ -230,6 +230,7 @@ dissect_fix_packet(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
char *value;
char *tag_str;
fix_parameter *tag;
+ const char *msg_type;
/* Make entries in Protocol column and Info column on summary display */
col_set_str(pinfo->cinfo, COL_PROTOCOL, "FIX");
@@ -268,13 +269,9 @@ dissect_fix_packet(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
return;
}
- if (check_col(pinfo->cinfo, COL_INFO)) {
- const char *msg_type;
-
- value = tvb_get_ephemeral_string(tvb, tag->value_offset, tag->value_len);
- msg_type = str_to_str(value, messages_val, "FIX Message (%s)");
- col_add_str(pinfo->cinfo, COL_INFO, msg_type);
- }
+ value = tvb_get_ephemeral_string(tvb, tag->value_offset, tag->value_len);
+ msg_type = str_to_str(value, messages_val, "FIX Message (%s)");
+ col_add_str(pinfo->cinfo, COL_INFO, msg_type);
/* In the interest of speed, if "tree" is NULL, don't do any work not
* necessary to generate protocol tree items.