fix: crash on assert in string

This commit is contained in:
3lswear
2022-02-10 22:34:23 +03:00
parent e1d654b50b
commit d084fc839e

View File

@@ -166,6 +166,8 @@ int checkEnd(const std::string& str, const std::string& end)
size_t i = str.size();
size_t j = end.size();
if (i == 0)
return (1);
while (j > 0)
{
i--;