X-Git-Url: http://git.tuebingen.mpg.de/?p=dss.git;a=blobdiff_plain;f=string.c;h=d340811e6f42b23ce7cec7b4e6a03653ac9522e2;hp=22d39056e8cbf6169914c25c58b6eb56b45f9cdf;hb=42451d3bbe741ebae3c8ad49aa104ae53efdbcdb;hpb=06a23c29478453399f46aadbe387124eb03b28da 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",