Mercurial > emacs
changeset 39228:fcb8e48eec89
allocate_buffer): Call VALIDATE_LISP_STORAGE.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Mon, 10 Sep 2001 13:41:21 +0000 |
parents | 377e5f02169a |
children | bf5f26157d70 |
files | src/alloc.c |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/alloc.c Mon Sep 10 13:31:04 2001 +0000 +++ b/src/alloc.c Mon Sep 10 13:41:21 2001 +0000 @@ -611,8 +611,11 @@ 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; }