Skip to content

Commit

Permalink
mx_util: Cleanup mx_malloc_forever()
Browse files Browse the repository at this point in the history
fix indent
  • Loading branch information
mariux committed Oct 16, 2015
1 parent bc92e9d commit 61f47da
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions mx_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 61f47da

Please sign in to comment.