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:
Artem Popov 2016-11-07 14:42:51 -08:00 committed by Cedric BAIL
parent 595ae821ba
commit a061f211c0
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}