diff options
author | Daniel Zaoui <daniel.zaoui@samsung.com> | 2015-11-12 08:39:46 +0200 |
---|---|---|
committer | Daniel Zaoui <daniel.zaoui@samsung.com> | 2015-11-12 08:39:46 +0200 |
commit | 779b834c8d4a7ffbbd4c60d46397c0ed78e0715d (patch) | |
tree | b5891f23b2b68959addf81bffd70d4edad5e650c | |
parent | 3ecd85e71eeead169bbd2d69b7631f22a02afdc2 (diff) | |
download | elementary-779b834c8d4a7ffbbd4c60d46397c0ed78e0715d.tar.gz |
Clouseau: handle case when the library is not installed
Eina module errors are printed on the screen when the library is not
installed in the system and Clouseau debug is enabled.
The module pointer is not NULL checked, leading to an error message when trying
to load this NULL module.
@fix
-rw-r--r-- | src/lib/elm_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/elm_main.c b/src/lib/elm_main.c index af147bded..9ad2e8df5 100644 --- a/src/lib/elm_main.c +++ b/src/lib/elm_main.c @@ -248,10 +248,10 @@ _elm_clouseau_reload() _clouseau_info.handle = eina_module_new( PACKAGE_LIB_DIR "/libclouseau" LIBEXT); - if (!eina_module_load(_clouseau_info.handle)) + if (!_clouseau_info.handle || !eina_module_load(_clouseau_info.handle)) { WRN("Failed loading the clouseau library."); - eina_module_free(_clouseau_info.handle); + if (_clouseau_info.handle) eina_module_free(_clouseau_info.handle); _clouseau_info.handle = NULL; return EINA_FALSE; } |