From 933c0a6b046cb41aa4880be377dfcb5daecb31fc Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Mon, 8 Aug 2016 18:25:32 +0900 Subject: [PATCH] eina_module - check result of module load from an array of modules we don't give any debug or info if a module in a list fails to load. we should at least offer debug info. do that. this fixes coverity issue CID 1039687 --- src/lib/eina/eina_module.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib/eina/eina_module.c b/src/lib/eina/eina_module.c index 41d1fb3..a91f61a 100644 --- a/src/lib/eina/eina_module.c +++ b/src/lib/eina/eina_module.c @@ -567,7 +567,10 @@ EAPI void eina_module_list_load(Eina_Array *array) EINA_SAFETY_ON_NULL_RETURN(array); DBG("array %p, count %u", array, array->count); EINA_ARRAY_ITER_NEXT(array, i, m, iterator) - eina_module_load(m); + { + if (!eina_module_load(m)) + DBG("Cannot load module %s", m->file); + } } EAPI void eina_module_list_unload(Eina_Array *array) -- 2.7.4