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 22d3905..d340811 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)
 {
  */
 __must_check __malloc void *dss_malloc(size_t size)
 {
+       void *p;
        assert(size);
        assert(size);
-       void *p = malloc(size);
+       p = malloc(size);
 
        if (!p) {
                DSS_EMERG_LOG("malloc failed (size = %zu),  aborting\n",
 
        if (!p) {
                DSS_EMERG_LOG("malloc failed (size = %zu),  aborting\n",