mirror of
https://github.com/curl/curl.git
synced 2026-07-16 07:27:15 +03: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
1 changed files with 1 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue