kwo pushed a commit to branch master. http://git.enlightenment.org/legacy/imlib2.git/commit/?id=d9e2854f23b3e5b26a17d98e2eb2d4bbf4170033
commit d9e2854f23b3e5b26a17d98e2eb2d4bbf4170033 Author: Kim Woelders <[email protected]> Date: Thu Nov 4 18:52:41 2021 +0100 Loader loading: Don't bother looking up load() if we have load2() --- src/lib/loaders.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/loaders.c b/src/lib/loaders.c index 3269dc9..0be8c8b 100644 --- a/src/lib/loaders.c +++ b/src/lib/loaders.c @@ -124,8 +124,9 @@ __imlib_ProduceLoader(const char *file) free(l); return NULL; } - l->load = dlsym(l->handle, "load"); l->load2 = dlsym(l->handle, "load2"); + if (!l->load2) + l->load = dlsym(l->handle, "load"); l->save = dlsym(l->handle, "save"); l_formats = dlsym(l->handle, "formats"); --
