SDL: SDL_test: fix infinite loop when passing invalid argument

From 774e51627ef8f790a3f85573d7b18d63f54e5ac5 Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Thu, 16 Mar 2023 23:31:06 +0100
Subject: [PATCH] SDL_test: fix infinite loop when passing invalid argument

---
 src/test/SDL_test_common.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/test/SDL_test_common.c b/src/test/SDL_test_common.c
index 42335f42e209..390857ae3ba1 100644
--- a/src/test/SDL_test_common.c
+++ b/src/test/SDL_test_common.c
@@ -659,7 +659,7 @@ SDLTest_CommonDefaultArgs(SDLTest_CommonState *state, const int argc, char **arg
     int i = 1;
     while (i < argc) {
         const int consumed = SDLTest_CommonArg(state, i);
-        if (consumed == 0) {
+        if (consumed <= 0) {
             SDLTest_CommonLogUsage(state, argv[0], NULL);
             return SDL_FALSE;
         }