]> git.eshelyaron.com Git - emacs.git/commitdiff
allocate_buffer): Call VALIDATE_LISP_STORAGE.
authorGerd Moellmann <gerd@gnu.org>
Mon, 10 Sep 2001 13:41:21 +0000 (13:41 +0000)
committerGerd Moellmann <gerd@gnu.org>
Mon, 10 Sep 2001 13:41:21 +0000 (13:41 +0000)
src/alloc.c

index 5c0e0dd3c689d76a51b8dd45d3be52d2a68984d1..b048d04e645e227a7e7f4d7c58c35572261c32fc 100644 (file)
@@ -611,8 +611,11 @@ lisp_malloc (nbytes, type)
 struct buffer *
 allocate_buffer ()
 {
-  return (struct buffer *) lisp_malloc (sizeof (struct buffer),
-                                       MEM_TYPE_BUFFER);
+  struct buffer *b 
+    = (struct buffer *) lisp_malloc (sizeof (struct buffer),
+                                    MEM_TYPE_BUFFER);
+  VALIDATE_LISP_STORAGE (b, sizeof *b);
+  return b;
 }