tshark: Unconditionally call extcap_register_preferences

extcap_register_preferences is only called with the -G option
(to dump information) and extcap preferences are not loading,
loading it unconditionally avoids this, as it is done in the
GUI startup.
This commit is contained in:
Enrique Giraldo 2021-01-22 09:37:52 +01:00 committed by Guy Harris
parent 9ba1053237
commit 506f1c650f
1 changed files with 1 additions and 1 deletions

View File

@ -944,6 +944,7 @@ main(int argc, char *argv[])
#ifdef HAVE_PLUGINS
register_all_plugin_tap_listeners();
#endif
extcap_register_preferences();
/* Register all tap listeners. */
for (tap_reg_t *t = tap_reg_listener; t->cb_func != NULL; t++) {
t->cb_func();
@ -971,7 +972,6 @@ main(int argc, char *argv[])
if (strcmp(argv[2], "column-formats") == 0)
column_dump_column_formats();
else if (strcmp(argv[2], "currentprefs") == 0) {
extcap_register_preferences();
epan_load_settings();
write_prefs(NULL);
}