mirror of
https://github.com/curl/curl.git
synced 2026-08-25 06:03:32 +03:00
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:
parent
9147903366
commit
1503555836
5 changed files with 20 additions and 23 deletions
|
|
@ -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--;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue