diff options
author | Gilbert Ramirez <gram@alumni.rice.edu> | 2006-10-31 21:15:38 +0000 |
---|---|---|
committer | Gilbert Ramirez <gram@alumni.rice.edu> | 2006-10-31 21:15:38 +0000 |
commit | d21495d1ae49974d2dfccd19ca13f9a41c036aa6 (patch) | |
tree | acb29694bd808ce96e04ef999fc584a8977c2ffc /epan/dissectors/packet-2dparityfec.c | |
parent | 5f43f5b2151aa3abef067ab994801a044f79c94a (diff) |
The protocol must be registered before its fields, so that
proto_registrar_dump_fields() knows the relationship.
svn path=/trunk/; revision=19759
Diffstat (limited to 'epan/dissectors/packet-2dparityfec.c')
-rw-r--r-- | epan/dissectors/packet-2dparityfec.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/epan/dissectors/packet-2dparityfec.c b/epan/dissectors/packet-2dparityfec.c index ce9859e9a1..728cfdc288 100644 --- a/epan/dissectors/packet-2dparityfec.c +++ b/epan/dissectors/packet-2dparityfec.c @@ -320,15 +320,13 @@ void proto_register_2dparityfec(void) { module_t *module_2dparityfec; - proto_register_field_array(proto_2dparityfec, hf, array_length(hf)); - proto_register_subtree_array(ett, array_length(ett)); - - if(proto_2dparityfec == -1) { - proto_2dparityfec = proto_register_protocol( + proto_2dparityfec = proto_register_protocol( "Pro-MPEG Code of Practice #3 release 2 FEC Protocol", /* name */ "2dparityfec", /* short name */ "2dparityfec"); /* abbrev */ - } + + proto_register_field_array(proto_2dparityfec, hf, array_length(hf)); + proto_register_subtree_array(ett, array_length(ett)); module_2dparityfec = prefs_register_protocol(proto_2dparityfec, proto_reg_handoff_2dparityfec); |