mirror of
https://github.com/curl/curl.git
synced 2026-08-01 21:20:28 +03:00
tidy-up: avoid (()), clang-format fixes and more
- drop redundant parentheses from macro definitions. - apply clang-format in some places missed earlier. - wolfssl: fix a macro guard comment. - curl_setup.h: drop empty lines - FAQ: fix C formatting. Closes #19854
This commit is contained in:
parent
4e051ff550
commit
af5def0738
13 changed files with 404 additions and 374 deletions
2
docs/FAQ
2
docs/FAQ
|
|
@ -1157,7 +1157,7 @@ FAQ
|
|||
struct MemoryStruct *mem = (struct MemoryStruct *)data;
|
||||
|
||||
mem->memory = (char *)realloc(mem->memory, mem->size + realsize + 1);
|
||||
if (mem->memory) {
|
||||
if(mem->memory) {
|
||||
memcpy(&(mem->memory[mem->size]), ptr, realsize);
|
||||
mem->size += realsize;
|
||||
mem->memory[mem->size] = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue