Comment out various 'if(tree)'
col..._() and/or expert...() should not be called under 'if(tree)' Change-Id: I57efe44794977d3f93e4764642b091044a125c0c Reviewed-on: https://code.wireshark.org/review/6826 Reviewed-by: Bill Meier <wmeier@newsguy.com>
This commit is contained in:
parent
75858d787e
commit
d3261b2dda
|
@ -497,7 +497,7 @@ dissect_tetra(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
|
|||
break;
|
||||
}
|
||||
|
||||
if (tree) { /* we are being asked for details */
|
||||
/* if (tree) */ { /* we are being asked for details */
|
||||
guint32 offset = 0;
|
||||
guint32 txtimer = 0;
|
||||
guint32 tslot = 0;
|
||||
|
|
|
@ -2422,7 +2422,7 @@ dissect_h264(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
|
|||
col_append_fstr(pinfo->cinfo, COL_INFO, " %s",
|
||||
val_to_str(type, h264_type_summary_values, "Unknown Type (%u)"));
|
||||
|
||||
if (tree) {
|
||||
/* if (tree) */ {
|
||||
item = proto_tree_add_item(tree, proto_h264, tvb, 0, -1, ENC_NA);
|
||||
h264_tree = proto_item_add_subtree(item, ett_h264);
|
||||
|
||||
|
|
|
@ -9219,7 +9219,7 @@ dissect_tetra(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
|
|||
break;
|
||||
}
|
||||
|
||||
if (tree) { /* we are being asked for details */
|
||||
/* if (tree) */ { /* we are being asked for details */
|
||||
guint32 offset = 0;
|
||||
guint32 txtimer = 0;
|
||||
guint32 tslot = 0;
|
||||
|
|
|
@ -659,7 +659,7 @@ dissect_zebra(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
|
|||
col_set_str(pinfo->cinfo, COL_INFO,
|
||||
request? "Zebra Request" : "Zebra Reply");
|
||||
|
||||
if (tree) {
|
||||
/* if (tree) */ {
|
||||
ti = proto_tree_add_item(tree, proto_zebra, tvb, offset, -1,
|
||||
ENC_NA);
|
||||
zebra_tree = proto_item_add_subtree(ti, ett_zebra);
|
||||
|
|
Loading…
Reference in New Issue