WSDG: Fix example

Fix example header field map for proto_tree_add_bitmask() adding missing
terminator.

Bug: 16582
Change-Id: Ia4fe5e9ce8bbab74ad0e17f14609568ee03c88f5
Reviewed-on: https://code.wireshark.org/review/37329
Reviewed-by: Gerald Combs <gerald@wireshark.org>
This commit is contained in:
Jaap Keuter 2020-05-27 22:22:19 +02:00 committed by Gerald Combs
parent b036c0742e
commit d02ea543b7
1 changed files with 2 additions and 1 deletions

View File

@ -514,7 +514,8 @@ dissect_foo(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_)
static const int* bits[] = {
&hf_foo_startflag,
&hf_foo_endflag,
&hf_foo_priorityflag
&hf_foo_priorityflag,
NULL
};
proto_tree_add_bitmask(foo_tree, tvb, offset, hf_foo_flags, ett_foo, bits, ENC_BIG_ENDIAN);