forked from enlightenment/enlightenment
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:
parent
8b0c1eaefe
commit
81cbce9d96
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue