kwo pushed a commit to branch master. http://git.enlightenment.org/legacy/imlib2.git/commit/?id=3c645829b478db24458b9ce393fe3e6a840c01fb
commit 3c645829b478db24458b9ce393fe3e6a840c01fb Author: Kim Woelders <k...@woelders.dk> Date: Fri Apr 9 17:07:06 2021 +0200 Cleanups: while->for loops (loaders list) --- src/lib/loaders.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/lib/loaders.c b/src/lib/loaders.c index aa8b3d6..ae10271 100644 --- a/src/lib/loaders.c +++ b/src/lib/loaders.c @@ -75,14 +75,12 @@ __imlib_ConsumeLoader(ImlibLoader * l) void __imlib_RemoveAllLoaders(void) { - ImlibLoader *l, *il; + ImlibLoader *l, *l_next; - l = loaders; - while (l) + for (l = loaders; l; l = l_next) { - il = l; - l = l->next; - __imlib_ConsumeLoader(il); + l_next = l->next; + __imlib_ConsumeLoader(l); } loaders = NULL; } --