aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc.c
diff options
context:
space:
mode:
authorRichard M. Stallman2003-10-13 18:45:03 +0000
committerRichard M. Stallman2003-10-13 18:45:03 +0000
commit4532fdde327e5e9b45735e8fe8e44d2601cb2dcc (patch)
tree897b280b597d051a0781a7da5f7588447c4fa4bf /src/alloc.c
parent499858c56d92c674ed9a9f4d623a733208d0ebb7 (diff)
downloademacs-4532fdde327e5e9b45735e8fe8e44d2601cb2dcc.tar.gz
emacs-4532fdde327e5e9b45735e8fe8e44d2601cb2dcc.zip
(lisp_align_malloc): If BASE is 0, call memory_full.
Diffstat (limited to 'src/alloc.c')
-rw-r--r--src/alloc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/alloc.c b/src/alloc.c
index 56a4c0b6ca0..a001413cb52 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -756,6 +756,11 @@ lisp_align_malloc (nbytes, type)
756#else 756#else
757 base = malloc (ABLOCKS_BYTES); 757 base = malloc (ABLOCKS_BYTES);
758 abase = ALIGN (base, BLOCK_ALIGN); 758 abase = ALIGN (base, BLOCK_ALIGN);
759 if (base == 0)
760 {
761 UNBLOCK_INPUT;
762 memory_full ();
763 }
759#endif 764#endif
760 765
761 aligned = (base == abase); 766 aligned = (base == abase);