]> git.ipfire.org Git - thirdparty/curl.git/commit
lib: replace while(ISBLANK()) loops with Curl_str_passblanks()
authorDaniel Stenberg <daniel@haxx.se>
Thu, 27 Feb 2025 22:26:54 +0000 (23:26 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 3 Mar 2025 09:56:09 +0000 (10:56 +0100)
commit294136b75411893c57db9438b1a69493adc08c9c
tree14bbb86815c48d9814531fe244471bb6d07c8583
parentf61b218e7de1c0a5278bee544977189aa66d8f38
lib: replace while(ISBLANK()) loops with Curl_str_passblanks()

- replace several ISSPACE() with ISBLANK(), since the former also skips
  CR and LF which in most cases should not occur where this macro is
  used

- after this commit, there is no ISSPACE() user left in libcurl code, but
  unfortunately tool and test code use the macro so it cannot be removed.

Closes #16520
20 files changed:
lib/altsvc.c
lib/content_encoding.c
lib/cookie.c
lib/curl_fnmatch.c
lib/ftplistparser.c
lib/headers.c
lib/hsts.c
lib/http.c
lib/http_aws_sigv4.c
lib/http_digest.c
lib/http_negotiate.c
lib/http_ntlm.c
lib/http_proxy.c
lib/netrc.c
lib/noproxy.c
lib/rtsp.c
lib/strparse.c
lib/strparse.h
lib/strtoofft.c
lib/urlapi.c