diff options
author | Pascal Quantin <pascal.quantin@gmail.com> | 2016-06-05 16:27:37 +0200 |
---|---|---|
committer | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2016-06-05 17:47:04 +0000 |
commit | 86f91643656e0b8f82f7d66903cec089d5ed4208 (patch) | |
tree | 61d58439a05f42b41bda318f376e22b6e0295ce3 /epan/dissectors/packet-xml.c | |
parent | e6c0727bff21b9092ba5a6203bdfce255f4af7b5 (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-xml.c')
-rw-r--r-- | epan/dissectors/packet-xml.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/epan/dissectors/packet-xml.c b/epan/dissectors/packet-xml.c index ca10bdb2d9..4d2769aaf5 100644 --- a/epan/dissectors/packet-xml.c +++ b/epan/dissectors/packet-xml.c @@ -819,11 +819,7 @@ static void add_xml_field(wmem_array_t *hfs, int *p_id, const gchar *name, const hfri.hfinfo.strings = NULL; hfri.hfinfo.bitmask = 0x0; hfri.hfinfo.blurb = NULL; - hfri.hfinfo.id = 0; - hfri.hfinfo.parent = 0; - hfri.hfinfo.ref_type = HF_REF_TYPE_NONE; - hfri.hfinfo.same_name_next = NULL; - hfri.hfinfo.same_name_prev_id = -1; + HFILL_INIT(hfri); wmem_array_append_one(hfs, hfri); } |