From: Karl Heuer Date: Sun, 7 Jan 1996 07:00:56 +0000 (+0000) Subject: (alloca): If malloc fails, just abort. X-Git-Tag: emacs-19.34~1810 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e118218fae1502a78fdeeaf017c478a4ecddfc34;p=emacs.git (alloca): If malloc fails, just abort. --- diff --git a/src/alloca.c b/src/alloca.c index 7020f32c882..7061cec2d31 100644 --- a/src/alloca.c +++ b/src/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;