Commit 2f40bc523412742dac387b37d70b5a7f5d8363cc

Paul Eggert 2014-04-12T10:45:47

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.