mirror of
https://github.com/curl/curl.git
synced 2026-08-05 12:06:15 +03:00
spelling: call it null-terminate consistently
With a dash, using two Ls. Also for different forms of the word.
Use NULL in all uppercase if it means a zero pointer.
Follow-up to 307b7543ea
Closes #17489
This commit is contained in:
parent
54834b4ad3
commit
fe81a80ae7
39 changed files with 69 additions and 70 deletions
|
|
@ -217,7 +217,7 @@ static CURLcode namevalue(char *header, size_t hlen, unsigned int type,
|
|||
|
||||
/* skip all trailing space letters */
|
||||
while((end > header) && ISBLANK(*end))
|
||||
*end-- = 0; /* nul terminate */
|
||||
*end-- = 0; /* null-terminate */
|
||||
return CURLE_OK;
|
||||
}
|
||||
|
||||
|
|
@ -323,7 +323,7 @@ CURLcode Curl_headers_push(struct Curl_easy *data, const char *header,
|
|||
if(!hs)
|
||||
return CURLE_OUT_OF_MEMORY;
|
||||
memcpy(hs->buffer, header, hlen);
|
||||
hs->buffer[hlen] = 0; /* nul terminate */
|
||||
hs->buffer[hlen] = 0; /* null-terminate */
|
||||
|
||||
result = namevalue(hs->buffer, hlen, type, &name, &value);
|
||||
if(!result) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue