diff src/alloc.c @ 52837:1bbf3f566879

(lisp_align_malloc): If BASE is 0, call memory_full.
author Richard M. Stallman <rms@gnu.org>
date Mon, 13 Oct 2003 18:45:03 +0000
parents 623355edbb1d
children e8f5463f3d5b
line wrap: on
line diff
--- a/src/alloc.c	Mon Oct 13 18:44:22 2003 +0000
+++ b/src/alloc.c	Mon Oct 13 18:45:03 2003 +0000
@@ -756,6 +756,11 @@
 #else
       base = malloc (ABLOCKS_BYTES);
       abase = ALIGN (base, BLOCK_ALIGN);
+      if (base == 0)
+	{
+	  UNBLOCK_INPUT;
+	  memory_full ();
+	}
 #endif
 
       aligned = (base == abase);