mirror of
https://github.com/curl/curl.git
synced 2026-08-06 19:06:14 +03:00
if () => if()
while () => while() and some other minor re-indentings
This commit is contained in:
parent
33f7ac06c3
commit
cbd1a77ec2
38 changed files with 356 additions and 351 deletions
|
|
@ -71,7 +71,7 @@ static long memsize = 0; /* set number of mallocs allowed */
|
|||
/* this sets the log file name */
|
||||
void curl_memdebug(const char *logname)
|
||||
{
|
||||
if (!logfile) {
|
||||
if(!logfile) {
|
||||
if(logname)
|
||||
logfile = fopen(logname, "w");
|
||||
else
|
||||
|
|
@ -87,7 +87,7 @@ void curl_memdebug(const char *logname)
|
|||
successfully! */
|
||||
void curl_memlimit(long limit)
|
||||
{
|
||||
if (!memlimit) {
|
||||
if(!memlimit) {
|
||||
memlimit = TRUE;
|
||||
memsize = limit;
|
||||
}
|
||||
|
|
@ -185,8 +185,8 @@ char *curl_dostrdup(const char *str, int line, const char *source)
|
|||
len=strlen(str)+1;
|
||||
|
||||
mem=curl_domalloc(len, 0, NULL); /* NULL prevents logging */
|
||||
if (mem)
|
||||
memcpy(mem, str, len);
|
||||
if(mem)
|
||||
memcpy(mem, str, len);
|
||||
|
||||
if(logfile)
|
||||
fprintf(logfile, "MEM %s:%d strdup(%p) (%zd) = %p\n",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue