projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f6dcaa
)
Fix compiler warning: ISO C90 forbids mixed declarations and code
author
Yang Tse
<yangsita@gmail.com>
Wed, 18 Nov 2009 11:53:31 +0000
(11:53 +0000)
committer
Yang Tse
<yangsita@gmail.com>
Wed, 18 Nov 2009 11:53:31 +0000
(11:53 +0000)
lib/memdebug.c
patch
|
blob
|
history
diff --git
a/lib/memdebug.c
b/lib/memdebug.c
index
fbe4847
..
37921fd
100644
(file)
--- 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;