From: Karl Heuer Date: Sun, 7 Jan 1996 07:00:56 +0000 (+0000) Subject: (alloca): If malloc fails, just abort. X-Git-Tag: 3.74.3~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c36430699e4ec1b6a30cdea4504d994bf1ff09f1;p=thirdparty%2Fmake.git (alloca): If malloc fails, just abort. --- diff --git a/alloca.c b/alloca.c index 7020f32c..7061cec2 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;