]> Savannah Git Hosting - gnulib.git/commit
xalloc: allow x2nrealloc (P, PN, S) where P && !*PN
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 12 Apr 2014 17:45:47 +0000 (10:45 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 12 Apr 2014 17:46:45 +0000 (10:46 -0700)
commit2f40bc523412742dac387b37d70b5a7f5d8363cc
tree0ba5e9c55e8ab6f77800cc52fa8f3aa8a8a06de0
parentf4eba3ef124442a0e8c60cf70ca7d9962a1540a8
xalloc: allow x2nrealloc (P, PN, S) where P && !*PN

* lib/xalloc.h (x2nrealloc): Extend slightly, to allow the current
size to be zero even when the pointer is nonnull.  This
accommodates the use case where P is malloc (0) and *PN is 0 on a
host where malloc (0) yields nonnull.
ChangeLog
lib/xalloc.h