src: cleanup ISBLANK vs ISSPACE

- use ISBLANK() where only spaces and tabs should match
- change while(x && ISBLANK(X)) => while(ISBLANK(x))

Closes #16589
This commit is contained in:
Daniel Stenberg 2025-03-06 11:01:55 +01:00
parent 9147903366
commit 1503555836
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
5 changed files with 20 additions and 23 deletions

View file

@ -119,7 +119,7 @@ static ParameterError varfunc(struct GlobalConfig *global,
f += FUNC_TRIM_LEN;
if(clen) {
/* skip leading white space, including CRLF */
while(*c && ISSPACE(*c)) {
while(ISSPACE(*c)) {
c++;
len--;
}