mirror of
https://github.com/curl/curl.git
synced 2026-08-26 22:34:45 +03:00
tidy-up: drop redundant != NULL syntax
Where missed by checksrc. Closes #21932
This commit is contained in:
parent
d8c97b021b
commit
59213abfb2
32 changed files with 58 additions and 59 deletions
|
|
@ -1171,8 +1171,7 @@ static CURLUcode parseurl(const char *url, CURLU *u, unsigned int flags)
|
|||
/* this pathlen also contains the query and the fragment */
|
||||
pathlen = urllen - (path - url);
|
||||
if(hostlen) {
|
||||
ures = parse_authority(u, hostp, hostlen, flags, &host,
|
||||
u->scheme != NULL);
|
||||
ures = parse_authority(u, hostp, hostlen, flags, &host, !!u->scheme);
|
||||
if(!ures && (flags & CURLU_GUESS_SCHEME) && !u->scheme)
|
||||
ures = guess_scheme(u, &host);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue