diff options
author | Luis Ontanon <luis.ontanon@gmail.com> | 2005-02-10 17:14:31 +0000 |
---|---|---|
committer | Luis Ontanon <luis.ontanon@gmail.com> | 2005-02-10 17:14:31 +0000 |
commit | 24b8161e823e3fea43aed3b4ea13590d38f85bb7 (patch) | |
tree | c371997bba10b11fa34035fb5da08887b849e311 /plugins/mate | |
parent | f660b69b4f64e22396711669bc0392f72cb326bc (diff) |
mate runtime did not get initialized when configured after loading a capture file
svn path=/trunk/; revision=13381
Diffstat (limited to 'plugins/mate')
-rw-r--r-- | plugins/mate/packet-mate.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/mate/packet-mate.c b/plugins/mate/packet-mate.c index 7344869867..45be5b5c80 100644 --- a/plugins/mate/packet-mate.c +++ b/plugins/mate/packet-mate.c @@ -278,13 +278,17 @@ proto_reg_handoff_mate(void) if (!mc) { mc = mate_make_config((char*)pref_mate_config_filename,proto_mate); - current_mate_config_filename = pref_mate_config_filename; + if (mc) { /* XXX: alignment warnings, what do they mean? */ proto_register_field_array(proto_mate, (hf_register_info*) mc->hfrs->data, mc->hfrs->len ); proto_register_subtree_array((gint**) mc->ett->data, mc->ett->len); register_init_routine(init_mate); + if (current_mate_config_filename == NULL) initialize_mate_runtime(); } + + current_mate_config_filename = pref_mate_config_filename; + } } } |