1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-04 02:51:31 -08:00

(lisp_align_malloc): If BASE is 0, call memory_full.

This commit is contained in:
Richard M. Stallman 2003-10-13 18:45:03 +00:00
parent 499858c56d
commit 4532fdde32

View file

@ -756,6 +756,11 @@ lisp_align_malloc (nbytes, type)
#else
base = malloc (ABLOCKS_BYTES);
abase = ALIGN (base, BLOCK_ALIGN);
if (base == 0)
{
UNBLOCK_INPUT;
memory_full ();
}
#endif
aligned = (base == abase);