diff options
author | gram <gram@f5534014-38df-0310-8fa8-9805f1628bb7> | 2006-10-31 21:15:38 +0000 |
---|---|---|
committer | gram <gram@f5534014-38df-0310-8fa8-9805f1628bb7> | 2006-10-31 21:15:38 +0000 |
commit | d0342e2da5cab2a9bc7f033d4e52e66b6df80c2e (patch) | |
tree | acb29694bd808ce96e04ef999fc584a8977c2ffc /epan/dissectors/packet-2dparityfec.c | |
parent | 848ee45605a7e43e3a7fe30606bdb88c1f46985f (diff) |
The protocol must be registered before its fields, so that
proto_registrar_dump_fields() knows the relationship.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@19759 f5534014-38df-0310-8fa8-9805f1628bb7
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); |