diff options
author | Bill Meier <wmeier@newsguy.com> | 2008-05-14 01:47:41 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2008-05-14 01:47:41 +0000 |
commit | 44af6ef887427d09d1f3e0465b964fd1c4395909 (patch) | |
tree | b536e8eee183ff80de1e82a6513650d3c4892826 /epan/dissectors/packet-h223.c | |
parent | cae5293711372f6a3a72517c122150242e983330 (diff) |
Fix some of the Errors/warnings detected by checkapi.
svn path=/trunk/; revision=25290
Diffstat (limited to 'epan/dissectors/packet-h223.c')
-rw-r--r-- | epan/dissectors/packet-h223.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/epan/dissectors/packet-h223.c b/epan/dissectors/packet-h223.c index a96e339fee..29ee522e15 100644 --- a/epan/dissectors/packet-h223.c +++ b/epan/dissectors/packet-h223.c @@ -620,7 +620,7 @@ static void dissect_mux_al_pdu( tvbuff_t *tvb, h223_lc_params* lc_params ) { proto_tree *al_tree = NULL; - proto_item *al_item; + proto_item *al_item, *hidden_item; proto_tree *al_subtree; proto_item *al_subitem = NULL; proto_item *tmp_item; @@ -639,8 +639,10 @@ static void dissect_mux_al_pdu( tvbuff_t *tvb, al_item = proto_tree_add_none_format(vc_tree, hf_h223_al1, tvb, 0, -1, "H.223 AL1 (%sframed)", (lc_params->al_type==al1Framed)?"":"not "); al_tree = proto_item_add_subtree (al_item, ett_h223_al1); - if(lc_params->al_type == al1Framed) - proto_tree_add_boolean_hidden(al_tree, hf_h223_al1_framed, tvb, 0, 1, TRUE ); + if(lc_params->al_type == al1Framed) { + hidden_item = proto_tree_add_boolean(al_tree, hf_h223_al1_framed, tvb, 0, 1, TRUE ); + PROTO_ITEM_SET_HIDDEN(hidden_item); + } next_tvb = tvb; al_subitem = proto_tree_add_item(al_tree, hf_h223_al_payload, next_tvb, 0, -1, FALSE); break; |