changeset 14050:28df14e7a281

(alloca): If malloc fails, just abort.
author Karl Heuer <kwzh@gnu.org>
date Sun, 07 Jan 1996 07:00:56 +0000
parents d35edcfdefc1
children 7f7e97f219ce
files src/alloca.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/alloca.c	Sat Jan 06 21:20:51 1996 +0000
+++ b/src/alloca.c	Sun Jan 07 07:00:56 1996 +0000
@@ -209,6 +209,9 @@
     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;