diff options
author | Bill Meier <wmeier@newsguy.com> | 2009-09-25 00:29:06 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2009-09-25 00:29:06 +0000 |
commit | 8ccb52de00148c7ff9da2e040ed5df393fcf79a0 (patch) | |
tree | f83a86876887f8ce409f87148573d0b15715258a /epan/dissectors/packet-3com-njack.c | |
parent | 0d22e0acb449dafab964b93a2342432cc45e1fd8 (diff) |
Upon 2nd thought: revert removal of 'if (check_col(...))' around col_add_fstr & etc.
svn path=/trunk/; revision=30133
Diffstat (limited to 'epan/dissectors/packet-3com-njack.c')
-rw-r--r-- | epan/dissectors/packet-3com-njack.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/epan/dissectors/packet-3com-njack.c b/epan/dissectors/packet-3com-njack.c index b0d64146af..6dcde5e774 100644 --- a/epan/dissectors/packet-3com-njack.c +++ b/epan/dissectors/packet-3com-njack.c @@ -577,7 +577,8 @@ dissect_njack(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) packet_type = tvb_get_guint8(tvb, 5); col_set_str(pinfo->cinfo, COL_PROTOCOL, PROTO_SHORT_NAME); - col_add_str(pinfo->cinfo, COL_INFO, val_to_str(packet_type, njack_type_vals, "Type 0x%02x")); + if (check_col(pinfo->cinfo, COL_INFO)) + col_add_str(pinfo->cinfo, COL_INFO, val_to_str(packet_type, njack_type_vals, "Type 0x%02x")); if (tree) { ti = proto_tree_add_item(tree, proto_njack, tvb, offset, -1, |