aboutsummaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
Diffstat (limited to 'libbb')
-rw-r--r--libbb/xfuncs.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/libbb/xfuncs.c b/libbb/xfuncs.c
index 699d09c67..31f0febca 100644
--- a/libbb/xfuncs.c
+++ b/libbb/xfuncs.c
@@ -41,15 +41,6 @@ void *xzalloc(size_t size)
41} 41}
42#endif 42#endif
43 43
44#ifdef L_xcalloc
45void *xcalloc(size_t nmemb, size_t size)
46{
47 void *ptr = calloc(nmemb, size);
48 if (ptr == NULL && nmemb != 0 && size != 0)
49 bb_error_msg_and_die(bb_msg_memory_exhausted);
50 return ptr;
51}
52#endif
53#endif /* DMALLOC */ 44#endif /* DMALLOC */
54 45
55#ifdef L_xstrdup 46#ifdef L_xstrdup