Enhance error printout if register_dissector_table() is called with wrong

type.

Change-Id: I7af0d89441b9ab87e9ed8dd0d52ca7f6ad82b896
Reviewed-on: https://code.wireshark.org/review/15458
Reviewed-by: Michael Mann <mmann78@netscape.net>
This commit is contained in:
AndersBroman 2016-05-16 13:39:01 +02:00 committed by Michael Mann
parent dcd833e348
commit 2a08bd75b6
1 changed files with 1 additions and 0 deletions

View File

@ -2119,6 +2119,7 @@ register_dissector_table(const char *name, const char *ui_name, const int proto,
&g_free );
break;
default:
g_error("The dissector table %s (%s) is registering an unsupported type - are you using a buggy plugin?", name, ui_name);
g_assert_not_reached();
}
sub_dissectors->dissector_handles = NULL;