summaryrefslogtreecommitdiff
path: root/alloca.c
diff options
context:
space:
mode:
Diffstat (limited to 'alloca.c')
-rw-r--r--alloca.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/alloca.c b/alloca.c
index 7020f32..7061cec 100644
--- a/alloca.c
+++ b/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;