]> Savannah Git Hosting - gnulib.git/commit
reallocarray: Don't assume unportable behaviour of realloc.
authorBruno Haible <bruno@clisp.org>
Mon, 21 Oct 2024 15:20:37 +0000 (17:20 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 21 Oct 2024 15:20:37 +0000 (17:20 +0200)
commitb3791b2bb9bdf03b2f99be5629d017a40382e1ee
treed4fd0e1de9a57f41bba1decfd5d5e862e277d7e4
parent12cd6eca2058105f81c3a5dc739e82f965ca18bf
reallocarray: Don't assume unportable behaviour of realloc.

* lib/reallocarray.c (reallocarray): Handle the nbytes==0 case
explicitly.
* modules/reallocarray (Depends-on): Remove realloc-gnu. Add
malloc-posix, realloc-posix.
ChangeLog
lib/reallocarray.c
modules/reallocarray