(alloca): If malloc fails, just abort.

This commit is contained in:
Karl Heuer 1996-01-07 07:00:56 +00:00
parent 5f99dee5b5
commit c36430699e

View file

@ -209,6 +209,9 @@ alloca (size)
register pointer new = malloc (sizeof (header) + size);
/* Address of header. */
if (new == 0)
abort();
((header *) new)->h.next = last_alloca_header;
((header *) new)->h.deep = depth;