diff options
Diffstat (limited to 'utils/atj2137/atjboottool/misc.c')
-rw-r--r-- | utils/atj2137/atjboottool/misc.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/utils/atj2137/atjboottool/misc.c b/utils/atj2137/atjboottool/misc.c index 108235e7fd..b13e4b4c5e 100644 --- a/utils/atj2137/atjboottool/misc.c +++ b/utils/atj2137/atjboottool/misc.c | |||
@@ -37,7 +37,12 @@ static bool g_color_enable = true; | |||
37 | void *xmalloc(size_t s) | 37 | void *xmalloc(size_t s) |
38 | { | 38 | { |
39 | void * r = malloc(s); | 39 | void * r = malloc(s); |
40 | if(!r) bugp("malloc"); | 40 | if(!r) |
41 | { | ||
42 | color(GREY); | ||
43 | printf("Allocation failed.\n"); | ||
44 | abort(); | ||
45 | } | ||
41 | return r; | 46 | return r; |
42 | } | 47 | } |
43 | 48 | ||