[PATCH] Fix allocate 0 bytes on arches where malloc (0) returns NULL

Jakub Jelinek jakub@redhat.com
Mon Oct 3 09:39:00 GMT 2005


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?

	Jakub



More information about the Fortran mailing list