aboutsummaryrefslogtreecommitdiff
path: root/lib/memdebug.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2009-11-18 11:53:31 +0000
committerYang Tse <yangsita@gmail.com>2009-11-18 11:53:31 +0000
commite8fd5d806204118c8f856378c911f467a43d0231 (patch)
treea9a4be5d9350e384d1f23f5995828b899a555e3f /lib/memdebug.c
parent2f6dcaa644b79a182300edeb160cccd512dcf6c0 (diff)
Fix compiler warning: ISO C90 forbids mixed declarations and code
Diffstat (limited to 'lib/memdebug.c')
-rw-r--r--lib/memdebug.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/memdebug.c b/lib/memdebug.c
index fbe4847f0..37921fd76 100644
--- a/lib/memdebug.c
+++ b/lib/memdebug.c
@@ -211,10 +211,10 @@ void *curl_dorealloc(void *ptr, size_t wantedsize,
{
struct memdebug *mem=NULL;
- assert(wantedsize != 0);
-
size_t size = sizeof(struct memdebug)+wantedsize;
+ assert(wantedsize != 0);
+
if(countcheck("realloc", line, source))
return NULL;