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

@ -278,7 +278,7 @@ static CURLcode glob_range(struct URLGlob *glob, char **patternp,
endp = NULL;
else {
pattern = endp + 1;
while(*pattern && ISBLANK(*pattern))
while(ISBLANK(*pattern))
pattern++;
if(!ISDIGIT(*pattern)) {
endp = NULL;