From: Daniel Richard G Date: Thu, 2 Aug 2012 18:00:29 +0000 (+0200) Subject: string.c: Fix a statement-before-declaration issue. X-Git-Tag: v0.1.5~12^2~1 X-Git-Url: http://git.tuebingen.mpg.de/?p=dss.git;a=commitdiff_plain;h=899f8848ff0cbea84d710ddfcd4369d7c5fa844e string.c: Fix a statement-before-declaration issue. --- diff --git a/string.c b/string.c index 22d3905..d340811 100644 --- a/string.c +++ b/string.c @@ -93,8 +93,9 @@ __must_check __malloc void *dss_realloc(void *p, size_t size) */ __must_check __malloc void *dss_malloc(size_t size) { + void *p; assert(size); - void *p = malloc(size); + p = malloc(size); if (!p) { DSS_EMERG_LOG("malloc failed (size = %zu), aborting\n",