From 11a843f8eee859fe539d6046dba6f3145b43b0c5 Mon Sep 17 00:00:00 2001 From: Jeffery Myers Date: Mon, 17 Jan 2022 08:52:29 -0800 Subject: [PATCH] break is better than loop var to -1 --- src/rcore.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/rcore.c b/src/rcore.c index 08f18f717..deaf32da9 100644 --- a/src/rcore.c +++ b/src/rcore.c @@ -3006,7 +3006,7 @@ const char *GetApplicationDirectory(void) if (appDir[i] == '\\') { appDir[i + 1] = '\0'; - i = -1; + break; } } } @@ -3027,7 +3027,7 @@ const char *GetApplicationDirectory(void) if (appDir[i] == '/') { appDir[i + 1] = '\0'; - i = -1; + break; } } } @@ -3047,7 +3047,7 @@ const char *GetApplicationDirectory(void) if (appDir[i] == '/') { appDir[i + 1] = '\0'; - i = -1; + break; } } }