mirror of
https://github.com/curl/curl.git
synced 2026-04-14 22:31:41 +03:00
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:
parent
9d5563b535
commit
076444ec46
12 changed files with 30 additions and 30 deletions
|
|
@ -209,7 +209,7 @@ static CURLcode namevalue(char *header, size_t hlen, unsigned int type,
|
|||
return CURLE_BAD_FUNCTION_ARGUMENT;
|
||||
|
||||
/* skip all leading space letters */
|
||||
while(*header && ISBLANK(*header))
|
||||
while(ISBLANK(*header))
|
||||
header++;
|
||||
|
||||
*value = header;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue