diff options
| author | Daniel Richard G <skunk@iSKUNK.ORG> | 2012-08-02 20:00:29 +0200 |
|---|---|---|
| committer | Andre Noll <maan@systemlinux.org> | 2012-08-04 13:34:54 +0200 |
| commit | 899f8848ff0cbea84d710ddfcd4369d7c5fa844e (patch) | |
| tree | 2910d970f3ee965c25c22864de7c555c4554deb9 | |
| parent | 83ebb41861d0fc82d2bf3717fc809cacb2bab51e (diff) | |
string.c: Fix a statement-before-declaration issue.
| -rw-r--r-- | string.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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", |
