summaryrefslogtreecommitdiff
path: root/src/lib/ethumb
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2018-08-13 15:47:18 +0200
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2018-09-13 09:54:13 +0200
commit2d94b8b93f59ed7b5e682526db5b7e27c3539442 (patch)
treea2f7533925a4358ddfd8767ebc3953dfb86fe73b /src/lib/ethumb
parent8bd0cfdb984ce071574ac5910379b3d431bca665 (diff)
ethumb: fix module loading when running in tree
Differential Revision: https://phab.enlightenment.org/D6820
Diffstat (limited to 'src/lib/ethumb')
-rw-r--r--src/lib/ethumb/ethumb.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/lib/ethumb/ethumb.c b/src/lib/ethumb/ethumb.c
index 436088e9b2..e3afb74bc9 100644
--- a/src/lib/ethumb/ethumb.c
+++ b/src/lib/ethumb/ethumb.c
@@ -173,9 +173,18 @@ _ethumb_plugins_load(void)
173 const char **itr; 173 const char **itr;
174 for (itr = built_modules; *itr != NULL; itr++) 174 for (itr = built_modules; *itr != NULL; itr++)
175 { 175 {
176 Eina_Module *m;
177
176 bs_mod_get(buf, sizeof(buf), "ethumb", *itr); 178 bs_mod_get(buf, sizeof(buf), "ethumb", *itr);
177 _plugins = eina_module_list_get(_plugins, buf, 179
178 EINA_FALSE, NULL, NULL); 180 m = eina_module_new(buf);
181
182 if (!m) continue;
183
184 if (!_plugins)
185 _plugins = eina_array_new(1);
186
187 eina_array_push(_plugins, m);
179 } 188 }
180 goto load; 189 goto load;
181 } 190 }