From 61f47da0e17212e8f8cfa79a702aca16558937af Mon Sep 17 00:00:00 2001 From: Marius Tolzmann Date: Fri, 16 Oct 2015 15:26:24 +0200 Subject: [PATCH] mx_util: Cleanup mx_malloc_forever() fix indent --- mx_util.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/mx_util.c b/mx_util.c index abd53a4..04e5a6d 100644 --- a/mx_util.c +++ b/mx_util.c @@ -556,11 +556,13 @@ int mx_strtoi64(char *str, int64_t *to) void *mx_malloc_forever(size_t size) { void *ret; + do { - ret=malloc(size); + ret = malloc(size); assert(ret || (!ret && errno == ENOMEM)); - } while (!ret); - return ret ; + } while (!ret); + + return ret ; } char *mx_strdup_forever(char *str)