diff options
| author | Karl Heuer | 1996-01-07 07:00:56 +0000 |
|---|---|---|
| committer | Karl Heuer | 1996-01-07 07:00:56 +0000 |
| commit | e118218fae1502a78fdeeaf017c478a4ecddfc34 (patch) | |
| tree | 62fc833bebb6e62ac98714e673e13cab3a1f4596 /src/alloca.c | |
| parent | 3e8258e7f5de89fff0cd902f3786a57ce93a7a02 (diff) | |
| download | emacs-e118218fae1502a78fdeeaf017c478a4ecddfc34.tar.gz emacs-e118218fae1502a78fdeeaf017c478a4ecddfc34.zip | |
(alloca): If malloc fails, just abort.
Diffstat (limited to 'src/alloca.c')
| -rw-r--r-- | src/alloca.c | 3 |
1 files changed, 3 insertions, 0 deletions
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) | |||
| 209 | register pointer new = malloc (sizeof (header) + size); | 209 | register pointer new = malloc (sizeof (header) + size); |
| 210 | /* Address of header. */ | 210 | /* Address of header. */ |
| 211 | 211 | ||
| 212 | if (new == 0) | ||
| 213 | abort(); | ||
| 214 | |||
| 212 | ((header *) new)->h.next = last_alloca_header; | 215 | ((header *) new)->h.next = last_alloca_header; |
| 213 | ((header *) new)->h.deep = depth; | 216 | ((header *) new)->h.deep = depth; |
| 214 | 217 | ||