]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
Fix compiler warning: ISO C90 forbids mixed declarations and code
authorYang Tse <yangsita@gmail.com>
Wed, 18 Nov 2009 11:53:31 +0000 (11:53 +0000)
committerYang Tse <yangsita@gmail.com>
Wed, 18 Nov 2009 11:53:31 +0000 (11:53 +0000)
lib/memdebug.c

index fbe4847f0834b33b2d9410d5283642ccc8bba44a..37921fd763efebacd09f0d0c35e2d0f098338719 100644 (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;