mirror of
https://github.com/curl/curl.git
synced 2025-03-01 15:15:34 +08:00
urlapi.c:seturl: assert URL instead of using if-check
There's no code flow possible where this can happen. The assert makes sure it also won't be introduced undetected in the future. Closes #7610
This commit is contained in:
parent
f09030b638
commit
98e6db24c4
@ -770,8 +770,7 @@ static CURLUcode seturl(const char *url, CURLU *u, unsigned int flags)
|
||||
size_t schemelen = 0;
|
||||
size_t urllen;
|
||||
|
||||
if(!url)
|
||||
return CURLUE_MALFORMED_INPUT;
|
||||
DEBUGASSERT(url);
|
||||
|
||||
/*************************************************************
|
||||
* Parse the URL.
|
||||
|
Loading…
Reference in New Issue
Block a user