diff src/alloca.c @ 14050:28df14e7a281

(alloca): If malloc fails, just abort.
author Karl Heuer <kwzh@gnu.org>
date Sun, 07 Jan 1996 07:00:56 +0000
parents 35bc87e0b41c
children 885968b5998e
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;