From: Gerd Moellmann Date: Thu, 17 Feb 2000 15:21:58 +0000 (+0000) Subject: (Fget_buffer_create, Fmake_indirect_buffer): Use X-Git-Tag: emacs-pretest-21.0.90~4988 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a21260d97c1c2b15736e5c99af4383c9ebc18903;p=emacs.git (Fget_buffer_create, Fmake_indirect_buffer): Use allocate_buffer instead of xmalloc. --- diff --git a/src/buffer.c b/src/buffer.c index 2fb9fefd5e9..59487962008 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -330,7 +330,7 @@ The value is never nil.") if (XSTRING (name)->size == 0) error ("Empty string for buffer name is not allowed"); - b = (struct buffer *) xmalloc (sizeof (struct buffer)); + b = (struct buffer *) allocate_buffer (); b->size = sizeof (struct buffer) / sizeof (EMACS_INT); @@ -427,8 +427,7 @@ NAME should be a string which is not the name of an existing buffer.") if (XSTRING (name)->size == 0) error ("Empty string for buffer name is not allowed"); - b = (struct buffer *) xmalloc (sizeof (struct buffer)); - + b = (struct buffer *) allocate_buffer (); b->size = sizeof (struct buffer) / sizeof (EMACS_INT); if (XBUFFER (base_buffer)->base_buffer)