From e8fd5d806204118c8f856378c911f467a43d0231 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Wed, 18 Nov 2009 11:53:31 +0000 Subject: [PATCH] Fix compiler warning: ISO C90 forbids mixed declarations and code --- lib/memdebug.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/memdebug.c b/lib/memdebug.c index fbe4847..37921fd 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; -- 2.7.4