Ralf Wildenhues <[EMAIL PROTECTED]> writes:

> * Paul Eggert wrote on Thu, Jun 01, 2006 at 10:20:58AM CEST:
>> Simon Josefsson <[EMAIL PROTECTED]> writes:
>> 
>> > What about realloc (NULL, ...)?
>> 
>> In practice that is as portable as free (NULL).  They were
>> standardized at the same time.
>
> Well, with the difference being here that realloc, similar to malloc,
> may not do what you expect from its glibc implementations, i.e., return
> non-NULL upon a request of zero size (which is the main reason for
> the Gnulib realloc module).

Read-file doesn't call realloc with size=0 (but it does call it with
pointer=NULL), so I've dropped the dependency on the realloc module in
read-file.

/Simon


Reply via email to