1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 08:08:50 -05:00

Fix compiler warning: ISO C90 forbids mixed declarations and code

This commit is contained in:
Yang Tse 2009-11-18 11:53:31 +00:00
parent 2f6dcaa644
commit e8fd5d8062

View File

@ -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;