xtp: Don't call col_...() under 'if (tree)'

Change-Id: Ie80476e919b5ba0a2e5f036c654a5379b91ddd32
Reviewed-on: https://code.wireshark.org/review/6931
Reviewed-by: Bill Meier <wmeier@newsguy.com>
This commit is contained in:
Bill Meier 2015-02-03 11:58:28 -05:00
parent a2eec54285
commit 33bdb21cc7
1 changed files with 1 additions and 1 deletions

View File

@ -967,7 +967,7 @@ dissect_xtp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_)
" Seq=%" G_GINT64_MODIFIER "u", xtph->seq);
col_append_fstr(pinfo->cinfo, COL_INFO, " Len=%u", xtph->dlen);
if (tree) {
/* if (tree) */ {
ti = proto_tree_add_item(tree, proto_xtp, tvb, 0, -1, ENC_NA);
/** add summary **/
proto_item_append_text(ti,