diff options
| author | Gerd Moellmann | 2001-09-10 13:41:21 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2001-09-10 13:41:21 +0000 |
| commit | 11d8165033f5227cfc6bf3b1b15498d1168fb108 (patch) | |
| tree | b6a54e20d657ca9c6648428c30f8a7bc17179af6 /src/alloc.c | |
| parent | b52758d17b4bf38d4fd92d904a2ab758723cf21a (diff) | |
| download | emacs-11d8165033f5227cfc6bf3b1b15498d1168fb108.tar.gz emacs-11d8165033f5227cfc6bf3b1b15498d1168fb108.zip | |
allocate_buffer): Call VALIDATE_LISP_STORAGE.
Diffstat (limited to 'src/alloc.c')
| -rw-r--r-- | src/alloc.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/alloc.c b/src/alloc.c index 5c0e0dd3c68..b048d04e645 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -611,8 +611,11 @@ lisp_malloc (nbytes, type) | |||
| 611 | struct buffer * | 611 | struct buffer * |
| 612 | allocate_buffer () | 612 | allocate_buffer () |
| 613 | { | 613 | { |
| 614 | return (struct buffer *) lisp_malloc (sizeof (struct buffer), | 614 | struct buffer *b |
| 615 | MEM_TYPE_BUFFER); | 615 | = (struct buffer *) lisp_malloc (sizeof (struct buffer), |
| 616 | MEM_TYPE_BUFFER); | ||
| 617 | VALIDATE_LISP_STORAGE (b, sizeof *b); | ||
| 618 | return b; | ||
| 616 | } | 619 | } |
| 617 | 620 | ||
| 618 | 621 | ||