log error and fail when attempting to register a nameless gadcon client class to prevent massive failure later

it is once again a good time to update


SVN revision: 74477
This commit is contained in:
Mike Blumenkrantz 2012-07-27 08:46:04 +00:00
parent 8b0c1eaefe
commit 81cbce9d96
1 changed files with 2 additions and 0 deletions

View File

@ -236,6 +236,8 @@ e_gadcon_provider_register(const E_Gadcon_Client_Class *cc)
E_Gadcon *gc;
Eina_List *l, *ll, *lll;
E_Config_Gadcon_Client *cf_gcc;
EINA_SAFETY_ON_NULL_RETURN(cc->name);
if (!providers) providers = eina_hash_string_superfast_new(NULL);
eina_hash_direct_add(providers, cc->name, cc);
EINA_LIST_FOREACH(gadcons, l, gc)