diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2005-02-04 10:32:28 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2005-02-04 10:32:28 +0000 |
commit | 17eb0d146634f47598fed04f7493c4a31b5d19b7 (patch) | |
tree | 4ff2b2df5c1209fde7f91d865870e07413e6ed5e /plugins/mate | |
parent | c8dfb20bac1f2a6cfe4c512a623a10a51e88709d (diff) |
HFILL can't be used to initialize at run time.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13286 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'plugins/mate')
-rw-r--r-- | plugins/mate/mate_setup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mate/mate_setup.c b/plugins/mate/mate_setup.c index 1713611041..d7bb775942 100644 --- a/plugins/mate/mate_setup.c +++ b/plugins/mate/mate_setup.c @@ -1173,6 +1173,7 @@ static void new_attr_hfri(mate_cfg_item* cfg, guint8* name) { hf_register_info hfri; + memset(&hfri, 0, sizeof hfri); hfri.p_id = p_id; hfri.hfinfo.name = g_strdup_printf("%s",name); hfri.hfinfo.abbrev = g_strdup_printf("mate.%s.%s",cfg->name,name); @@ -1181,7 +1182,6 @@ static void new_attr_hfri(mate_cfg_item* cfg, guint8* name) { hfri.hfinfo.strings = NULL; hfri.hfinfo.bitmask = 0; hfri.hfinfo.blurb = g_strdup_printf("%s attribute of %s",name,cfg->name); - hfri.hfinfo.id = HFILL; *p_id = -1; g_hash_table_insert(cfg->my_hfids,name,p_id); |