diff options
author | Anders Broman <anders.broman@ericsson.com> | 2005-09-14 19:14:23 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2005-09-14 19:14:23 +0000 |
commit | cb932a2514985e24670abcf5886b04f331d5c485 (patch) | |
tree | 1ff66a7c4a94cf6c0070e40a52219a1761592de2 /epan/proto.c | |
parent | 6e979407efe2982f94e229b222b9ac3c8cabb012 (diff) |
From Peter Johansson
I added a description for the call to DISSECTOR_ASSERT in proto.c to be
printed to stderr.
svn path=/trunk/; revision=15802
Diffstat (limited to 'epan/proto.c')
-rw-r--r-- | epan/proto.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/proto.c b/epan/proto.c index b6c9fcf270..98983a66d1 100644 --- a/epan/proto.c +++ b/epan/proto.c @@ -2916,7 +2916,7 @@ proto_register_field_array(int parent, hf_register_info *hf, int num_records) * 0 (which is unlikely to be the field ID we get back * from "proto_register_field_init()"). */ - DISSECTOR_ASSERT(*ptr->p_id == -1 || *ptr->p_id == 0); + DISSECTOR_ASSERT((*ptr->p_id == -1 || *ptr->p_id == 0) && "Duplicate field detected in call to proto_register_field_array"); if (proto != NULL) { if (proto->fields == NULL) { |