]> Savannah Git Hosting - gnulib.git/commit
realloc: don’t require success for nongrowth
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 4 Nov 2024 05:44:15 +0000 (21:44 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 5 Nov 2024 05:40:18 +0000 (21:40 -0800)
commit9a4319ca929b48a97817ecaaa5699a140c35307e
tree39af279e8fff188f01cf3d58a37f990264a8f9f7
parent9a7a9d1bcd4734260111f11d5c033938911bd932
realloc: don’t require success for nongrowth

* lib/realloc.c (rpl_realloc): Do not require realloc (p, 0) to
succeed, as apparently glibc realloc (p, n) can sometimes fail
even when the region would not grow.
ChangeLog
doc/posix-functions/realloc.texi
lib/realloc.c