cedric pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=a061f211c09789bf82ef5e9e8b500528a5ab29d5
commit a061f211c09789bf82ef5e9e8b500528a5ab29d5 Author: Artem Popov <artem.po...@samsung.com> Date: Mon Nov 7 14:42:51 2016 -0800 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 <ced...@osg.samsung.com> --- src/lib/eina/eina_module.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/eina/eina_module.c b/src/lib/eina/eina_module.c index a91f61a..affaf2c 100644 --- a/src/lib/eina/eina_module.c +++ b/src/lib/eina/eina_module.c @@ -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; } --