mirror of
https://github.com/3lswear/webserv.git
synced 2025-10-28 21:07:59 +03:00
fix: crash on assert in string
This commit is contained in:
@@ -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--;
|
||||
|
||||
Reference in New Issue
Block a user