aboutsummaryrefslogtreecommitdiffstats
path: root/epan/packet.c
diff options
context:
space:
mode:
authorUlf Lamping <ulf.lamping@web.de>2007-10-02 05:07:13 +0000
committerUlf Lamping <ulf.lamping@web.de>2007-10-02 05:07:13 +0000
commita8b2f589e993114e89922daf8800599b58676a0c (patch)
tree58dc868c632e8220904a72f151bf9eb2845e9f62 /epan/packet.c
parentc3131594a8720541805495fc8cbd1d7637b2364f (diff)
be a bit more verbose, if the name given to register_dissector_table() is not unique (e.g. because of a buggy/duplicated plugin)
svn path=/trunk/; revision=23042
Diffstat (limited to 'epan/packet.c')
-rw-r--r--epan/packet.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/epan/packet.c b/epan/packet.c
index 5627a79efd..f5f7af6058 100644
--- a/epan/packet.c
+++ b/epan/packet.c
@@ -1386,7 +1386,9 @@ register_dissector_table(const char *name, const char *ui_name, ftenum_t type,
}
/* Make sure the registration is unique */
- g_assert(!g_hash_table_lookup( dissector_tables, name ));
+ if(g_hash_table_lookup( dissector_tables, name )) {
+ g_error("The filter name %s (%s) is already registered - do you use a buggy plugin?", name, ui_name);
+ }
/* Create and register the dissector table for this name; returns */
/* a pointer to the dissector table. */