]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Don't use MALLOC_FAILURE_ACTION.
authorUlrich Drepper <drepper@redhat.com>
Fri, 9 Aug 2002 18:28:55 +0000 (18:28 +0000)
committerUlrich Drepper <drepper@redhat.com>
Fri, 9 Aug 2002 18:28:55 +0000 (18:28 +0000)
malloc/malloc.c

index 2837fad462f38607a728e74db53839c7da8c3013..2f22f5a3bcee9fe1d65b0d9e54211aa3452a6e52 100644 (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;
     }
   }