]> git.tue.mpg.de Git - dss.git/commitdiff
string.c: Fix a statement-before-declaration issue.
authorDaniel Richard G <skunk@iSKUNK.ORG>
Thu, 2 Aug 2012 18:00:29 +0000 (20:00 +0200)
committerAndre Noll <maan@systemlinux.org>
Sat, 4 Aug 2012 11:34:54 +0000 (13:34 +0200)
string.c

index 22d39056e8cbf6169914c25c58b6eb56b45f9cdf..d340811e6f42b23ce7cec7b4e6a03653ac9522e2 100644 (file)
--- 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",