[PATCH] Fix allocate 0 bytes on arches where malloc (0) returns NULL
Thomas Koenig
Thomas.Koenig@online.de
Mon Oct 3 19:56:00 GMT 2005
On Mon, Oct 03, 2005 at 05:16:37AM -0400, Jakub Jelinek wrote:
> On Sun, Oct 02, 2005 at 09:53:30PM -0400, David Edelsohn wrote:
> > >>>>> Jakub Jelinek writes:
> >
> > Jakub> Does the following help?
> >
> > Jakub> * runtime/memory.c (allocate_size): Malloc 1 byte if size == 0.
> >
> > Yes, this patch appears to fix the regression.
>
> Ok for HEAD then?
OK (you could also have called this obvious, IMHO).
Thomas
More information about the Fortran
mailing list