mirror of
https://git.savannah.gnu.org/git/make.git
synced 2024-12-29 00:05:58 +00:00
(alloca): If malloc fails, just abort.
This commit is contained in:
parent
5f99dee5b5
commit
c36430699e
1 changed files with 3 additions and 0 deletions
3
alloca.c
3
alloca.c
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue