Don't use MALLOC_FAILURE_ACTION.

This commit is contained in:
Ulrich Drepper 2002-08-09 18:28:55 +00:00
parent 49f6c7f9d6
commit 1aa4fca163

View File

@ -3808,7 +3808,7 @@ Void_t* cALLOc(n, elem_size) size_t n; size_t elem_size;
(((INTERNAL_SIZE_T) 1) << (8 * sizeof (INTERNAL_SIZE_T) / 2))
if (__builtin_expect ((n | elem_size) >= HALF_INTERNAL_SIZE_T, 0)) {
if (elem_size != 0 && bytes / elem_size != n) {
MALLOC_FAILURE_ACTION;
__set_errno (ENOMEM);
return 0;
}
}