From cbd1a77ec24e397d05f20c6de106625676343c9d Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 7 Nov 2007 09:21:35 +0000 Subject: if () => if() while () => while() and some other minor re-indentings --- lib/memdebug.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/memdebug.c') diff --git a/lib/memdebug.c b/lib/memdebug.c index 9d3ef3d5e..96496b1fa 100644 --- a/lib/memdebug.c +++ b/lib/memdebug.c @@ -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", -- cgit v1.2.3