diff options
author | Kim Woelders <kim@woelders.dk> | 2021-04-09 17:07:06 +0200 |
---|---|---|
committer | Kim Woelders <kim@woelders.dk> | 2021-07-10 15:44:17 +0200 |
commit | 3c645829b478db24458b9ce393fe3e6a840c01fb (patch) | |
tree | 9749c6f5bd133cf749e75b0895cd2867eaf2ce76 | |
parent | 240857af990a621d64eeaa1c15672a8a167520cf (diff) | |
download | imlib2-3c645829b478db24458b9ce393fe3e6a840c01fb.tar.gz |
Cleanups: while->for loops (loaders list)
-rw-r--r-- | src/lib/loaders.c | 10 |
1 files 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; } |