kwo pushed a commit to branch master.

http://git.enlightenment.org/legacy/imlib2.git/commit/?id=6eb958fb1b1cde59ae98488f45da428d21006108

commit 6eb958fb1b1cde59ae98488f45da428d21006108
Author: Kim Woelders <[email protected]>
Date:   Thu Nov 14 16:38:57 2019 +0100

    imlib2_test_load: Fixup recent breakage for real
---
 src/bin/imlib2_test_load.c | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

diff --git a/src/bin/imlib2_test_load.c b/src/bin/imlib2_test_load.c
index c5dcc78..2489bbd 100644
--- a/src/bin/imlib2_test_load.c
+++ b/src/bin/imlib2_test_load.c
@@ -56,19 +56,14 @@ main(int argc, char **argv)
           }
      }
 
-   if (argc < 1)
+   if (argc <= 0)
       usage(0);
 
    imlib_context_set_progress_function(progress);
    imlib_context_set_progress_granularity(10);
 
-   for (;;)
+   for (; argc > 0; argc--, argv++)
      {
-        argc--;
-        argv++;
-        if (argc <= 0)
-           break;
-
         progress_called = 0;
 
         printf("Loading image: '%s'\n", argv[0]);

-- 


Reply via email to