mirror of
https://github.com/3lswear/webserv.git
synced 2025-10-29 05:17: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 i = str.size();
|
||||||
size_t j = end.size();
|
size_t j = end.size();
|
||||||
|
|
||||||
|
if (i == 0)
|
||||||
|
return (1);
|
||||||
while (j > 0)
|
while (j > 0)
|
||||||
{
|
{
|
||||||
i--;
|
i--;
|
||||||
|
|||||||
Reference in New Issue
Block a user