diff options
Diffstat (limited to 'malloc/reallocarray.c')
-rw-r--r-- | malloc/reallocarray.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/malloc/reallocarray.c b/malloc/reallocarray.c index 2a5f2a4..885eae5 100644 --- a/malloc/reallocarray.c +++ b/malloc/reallocarray.c @@ -1,5 +1,5 @@ /* Change the size of an allocated block. - Copyright (C) 2017-2024 Free Software Foundation, Inc. + Copyright (C) 2017-2025 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -27,7 +27,7 @@ __libc_reallocarray (void *optr, size_t nmemb, size_t elem_size) if (__builtin_mul_overflow (nmemb, elem_size, &bytes)) { __set_errno (ENOMEM); - return 0; + return NULL; } return realloc (optr, bytes); } |