tidy-up: drop redundant != NULL syntax

Where missed by checksrc.

Closes #21932
This commit is contained in:
Viktor Szakats 2026-06-09 13:38:17 +02:00
parent d8c97b021b
commit 59213abfb2
No known key found for this signature in database
32 changed files with 58 additions and 59 deletions

View file

@ -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);
}