aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-fr.c
diff options
context:
space:
mode:
authorwmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7>2008-05-15 01:44:53 +0000
committerwmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7>2008-05-15 01:44:53 +0000
commit137ad5e60845a4f203993b2700f1b81decc0dd79 (patch)
tree3d1112b08a02413f491bfad24d294022e8ef867c /epan/dissectors/packet-fr.c
parentaf3da03792c66a7b3564950db1cb09b8e5bd5a25 (diff)
Fix some of the Errors/warnings detected by checkapi.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25305 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-fr.c')
-rw-r--r--epan/dissectors/packet-fr.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/epan/dissectors/packet-fr.c b/epan/dissectors/packet-fr.c
index 41c2e92c7f..15835efa49 100644
--- a/epan/dissectors/packet-fr.c
+++ b/epan/dissectors/packet-fr.c
@@ -747,9 +747,12 @@ static void dissect_fr_nlpid(tvbuff_t *tvb, int offset, packet_info *pinfo,
* Yes, we got a match. Add the NLPID as a hidden item,
* so you can, at least, filter on it.
*/
- if (tree)
- proto_tree_add_uint_hidden(fr_tree, hf_fr_nlpid,
- tvb, offset, 1, fr_nlpid );
+ if (tree) {
+ proto_item *hidden_item;
+ hidden_item = proto_tree_add_uint(fr_tree, hf_fr_nlpid,
+ tvb, offset, 1, fr_nlpid );
+ PROTO_ITEM_SET_HIDDEN(hidden_item);
+ }
return;
}