diff options
author | Yang Tse <yangsita@gmail.com> | 2009-11-18 11:53:31 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2009-11-18 11:53:31 +0000 |
commit | e8fd5d806204118c8f856378c911f467a43d0231 (patch) | |
tree | a9a4be5d9350e384d1f23f5995828b899a555e3f /lib/memdebug.c | |
parent | 2f6dcaa644b79a182300edeb160cccd512dcf6c0 (diff) | |
download | curl-e8fd5d806204118c8f856378c911f467a43d0231.tar.gz |
Fix compiler warning: ISO C90 forbids mixed declarations and code
Diffstat (limited to 'lib/memdebug.c')
-rw-r--r-- | lib/memdebug.c | 4 |
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; |