lib: simplify more white space loops

Since the ISBLANK() and ISSPACE() macros check for specific matches,
there is no point in using while(*ptr && ISSPACE(*ptr)) etc, as the
'*ptr' check is then superfluous.

Closes #16363
This commit is contained in:
Daniel Stenberg 2025-02-17 11:24:49 +01:00
parent 9d5563b535
commit 076444ec46
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
12 changed files with 30 additions and 30 deletions

View file

@ -70,7 +70,7 @@ CURLcode Curl_input_ntlm(struct Curl_easy *data,
if(checkprefix("NTLM", header)) {
header += strlen("NTLM");
while(*header && ISSPACE(*header))
while(ISSPACE(*header))
header++;
if(*header) {