aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 675992db316..ad76c185c5e 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -348,7 +348,7 @@ The value is never nil. */)
348 if (SCHARS (name) == 0) 348 if (SCHARS (name) == 0)
349 error ("Empty string for buffer name is not allowed"); 349 error ("Empty string for buffer name is not allowed");
350 350
351 b = (struct buffer *) allocate_buffer (); 351 b = allocate_buffer ();
352 352
353 /* An ordinary buffer uses its own struct buffer_text. */ 353 /* An ordinary buffer uses its own struct buffer_text. */
354 b->text = &b->own_text; 354 b->text = &b->own_text;
@@ -549,7 +549,7 @@ CLONE nil means the indirect buffer's state is reset to default values. */)
549 if (SCHARS (name) == 0) 549 if (SCHARS (name) == 0)
550 error ("Empty string for buffer name is not allowed"); 550 error ("Empty string for buffer name is not allowed");
551 551
552 b = (struct buffer *) allocate_buffer (); 552 b = allocate_buffer ();
553 553
554 b->base_buffer = (XBUFFER (base_buffer)->base_buffer 554 b->base_buffer = (XBUFFER (base_buffer)->base_buffer
555 ? XBUFFER (base_buffer)->base_buffer 555 ? XBUFFER (base_buffer)->base_buffer