From: Yang Tse Date: Wed, 18 Nov 2009 11:53:31 +0000 (+0000) Subject: Fix compiler warning: ISO C90 forbids mixed declarations and code X-Git-Tag: curl-7_20_0~349 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e8fd5d806204118c8f856378c911f467a43d0231;p=thirdparty%2Fcurl.git Fix compiler warning: ISO C90 forbids mixed declarations and code --- diff --git a/lib/memdebug.c b/lib/memdebug.c index fbe4847f08..37921fd763 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;