aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-tpncp.c
diff options
context:
space:
mode:
authorPascal Quantin <pascal.quantin@gmail.com>2016-06-05 16:27:37 +0200
committerAlexis La Goutte <alexis.lagoutte@gmail.com>2016-06-05 17:47:04 +0000
commit86f91643656e0b8f82f7d66903cec089d5ed4208 (patch)
tree61d58439a05f42b41bda318f376e22b6e0295ce3 /epan/dissectors/packet-tpncp.c
parente6c0727bff21b9092ba5a6203bdfce255f4af7b5 (diff)
Initialize all header_field_info members
Change-Id: Id86d17f1e321b8cc73fb732aaf674e1420a0a745 Reviewed-on: https://code.wireshark.org/review/15737 Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com> Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-tpncp.c')
-rw-r--r--epan/dissectors/packet-tpncp.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/epan/dissectors/packet-tpncp.c b/epan/dissectors/packet-tpncp.c
index ff264b7873..7cc79d6a7f 100644
--- a/epan/dissectors/packet-tpncp.c
+++ b/epan/dissectors/packet-tpncp.c
@@ -578,16 +578,12 @@ static gint init_tpncp_data_fields_info(tpncp_data_field_info *data_fields_info,
}
};
- /* Register common fields of hf_register_info struture. */
+ /* Register common fields of hf_register_info structure. */
hf_entr.hfinfo.type = FT_NONE;
hf_entr.hfinfo.strings = NULL;
hf_entr.hfinfo.bitmask = 0x0;
hf_entr.hfinfo.blurb = NULL;
- hf_entr.hfinfo.id = 0;
- hf_entr.hfinfo.parent = 0;
- hf_entr.hfinfo.ref_type = HF_REF_TYPE_NONE;
- hf_entr.hfinfo.same_name_next = NULL;
- hf_entr.hfinfo.same_name_prev_id = -1;
+ HFILL_INIT(hf_entr);
if (!was_registered) {
/* Register non-standard data should be done only once. */