proto.c: Add hint to 'DISSECTOR_ASSERT(hf->bitmask != 0)' to show field name.

Change-Id: Ie578a73742901c1837802da17c0aaf2e58d48c6f
Reviewed-on: https://code.wireshark.org/review/5835
Reviewed-by: Bill Meier <wmeier@newsguy.com>
This commit is contained in:
Bill Meier 2014-12-18 11:53:03 -05:00
parent f299f73684
commit 71d13b30af
1 changed files with 1 additions and 1 deletions

View File

@ -7510,7 +7510,7 @@ proto_item_add_bitmask_tree(proto_item *item, tvbuff_t *tvb, const int offset,
while (*fields) {
guint64 present_bits;
PROTO_REGISTRAR_GET_NTH(**fields,hf);
DISSECTOR_ASSERT(hf->bitmask != 0);
DISSECTOR_ASSERT_HINT(hf->bitmask != 0, hf->abbrev);
/* Skip fields that aren't fully present */
present_bits = available_bits & hf->bitmask;