From 899f8848ff0cbea84d710ddfcd4369d7c5fa844e Mon Sep 17 00:00:00 2001 From: Daniel Richard G Date: Thu, 2 Aug 2012 20:00:29 +0200 Subject: [PATCH] string.c: Fix a statement-before-declaration issue. --- string.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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", -- 2.39.2