forked from enlightenment/efl
Eina: add NULL check to eina_module_symbol_global_set API @fix
Summary: Add checking on NULL like in other API in module, to avoid segmentation fault Reviewers: NikaWhite, cedric Reviewed By: cedric Subscribers: myoungwoon, jpeg Differential Revision: https://phab.enlightenment.org/D4383 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
This commit is contained in:
parent
595ae821ba
commit
a061f211c0
|
@ -404,6 +404,7 @@ EAPI const char *eina_module_file_get(const Eina_Module *m)
|
|||
|
||||
EAPI void eina_module_symbol_global_set(Eina_Module *module, Eina_Bool global)
|
||||
{
|
||||
EINA_SAFETY_ON_NULL_RETURN(module);
|
||||
module->global = !!global;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue