mirror of
https://github.com/curl/curl.git
synced 2026-07-23 18:17:15 +03:00
urlapi: address (harmless) UndefinedBehavior sanitizer warning
`while(i--)` causes runtime error: unsigned integer overflow: 0 - 1 cannot be represented in type 'size_t' (aka 'unsigned long') Closes #8797
This commit is contained in:
parent
6db4ef1242
commit
b5b86856a9
1 changed files with 1 additions and 1 deletions
|
|
@ -228,7 +228,7 @@ static void strcpy_url(char *output, const char *url, bool relative)
|
|||
*/
|
||||
bool Curl_is_absolute_url(const char *url, char *buf, size_t buflen)
|
||||
{
|
||||
size_t i;
|
||||
int i;
|
||||
DEBUGASSERT(!buf || (buflen > MAX_SCHEME_LEN));
|
||||
(void)buflen; /* only used in debug-builds */
|
||||
if(buf)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue