1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-13 09:32:47 +00:00

allocate_buffer): Call VALIDATE_LISP_STORAGE.

This commit is contained in:
Gerd Moellmann 2001-09-10 13:41:21 +00:00
parent b52758d17b
commit 11d8165033

View 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;
}