aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-pcp.c
diff options
context:
space:
mode:
authorAndersBroman <anders.broman@ericsson.com>2016-09-22 15:25:07 +0200
committerAnders Broman <a.broman58@gmail.com>2016-09-22 14:13:12 +0000
commit0b3d6793681fb351cd6e726d3323839cb0d86e64 (patch)
treefd5bed184944a8c2471d4b3c1504b9201102fed4 /epan/dissectors/packet-pcp.c
parentd29b369bdcdf5bbc3f22b46e3ba0734c630dd3ad (diff)
Don't call proto_register_field_array() or expert_register_protocol() with
proto = -1 Change-Id: I60f899ad748b5d3e17f237552af7d2dbc8f27bd2 Reviewed-on: https://code.wireshark.org/review/17864 Petri-Dish: Anders Broman <a.broman58@gmail.com> Reviewed-by: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-pcp.c')
-rw-r--r--epan/dissectors/packet-pcp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-pcp.c b/epan/dissectors/packet-pcp.c
index 5beaed5a8e..9a364c67f9 100644
--- a/epan/dissectors/packet-pcp.c
+++ b/epan/dissectors/packet-pcp.c
@@ -2548,11 +2548,11 @@ void proto_register_pcp(void)
expert_module_t* expert_pcp;
+ proto_pcp = proto_register_protocol("Performance Co-Pilot", "PCP", "pcp");
+
expert_pcp = expert_register_protocol(proto_pcp);
expert_register_field_array(expert_pcp, ei, array_length(ei));
- proto_pcp = proto_register_protocol("Performance Co-Pilot", "PCP", "pcp");
-
proto_register_field_array(proto_pcp, hf, array_length(hf));
proto_register_subtree_array(ett, array_length(ett));