break is better than loop var to -1

This commit is contained in:
Jeffery Myers 2022-01-17 08:52:29 -08:00
parent f864aff1b8
commit 11a843f8ee

View File

@ -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;
}
}
}