summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Richard G <skunk@iSKUNK.ORG>2012-08-02 20:00:29 +0200
committerAndre Noll <maan@systemlinux.org>2012-08-04 13:34:54 +0200
commit899f8848ff0cbea84d710ddfcd4369d7c5fa844e (patch)
tree2910d970f3ee965c25c22864de7c555c4554deb9
parent83ebb41861d0fc82d2bf3717fc809cacb2bab51e (diff)
string.c: Fix a statement-before-declaration issue.
-rw-r--r--string.c3
1 files changed, 2 insertions, 1 deletions
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",