Parenthesize HFILL_INIT macro properly

Change-Id: Ib1c347a290f57a1173c876de6e3c6cb6f5a1ca19
Reviewed-on: https://code.wireshark.org/review/18436
Reviewed-by: João Valverde <j@v6e.pt>
This commit is contained in:
João Valverde 2016-10-19 05:57:23 +01:00 committed by João Valverde
parent b5587379b7
commit e226abdbb0
1 changed files with 5 additions and 5 deletions

View File

@ -594,11 +594,11 @@ struct _header_field_info {
#define HFILL -1, 0, HF_REF_TYPE_NONE, -1, NULL
#define HFILL_INIT(hf) \
hf.hfinfo.id = -1; \
hf.hfinfo.parent = 0; \
hf.hfinfo.ref_type = HF_REF_TYPE_NONE; \
hf.hfinfo.same_name_prev_id = -1; \
hf.hfinfo.same_name_next = NULL;
(hf).hfinfo.id = -1; \
(hf).hfinfo.parent = 0; \
(hf).hfinfo.ref_type = HF_REF_TYPE_NONE; \
(hf).hfinfo.same_name_prev_id = -1; \
(hf).hfinfo.same_name_next = NULL;
/** Used when registering many fields at once, using proto_register_field_array() */
typedef struct hf_register_info {