aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/buffer.c b/src/buffer.c
index d8742eb2c61..38593b486c1 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -230,6 +230,9 @@ The value is never nil.")
230 if (!NILP (buf)) 230 if (!NILP (buf))
231 return buf; 231 return buf;
232 232
233 if (XSTRING (name)->size == 0)
234 error ("Empty string for buffer name is not allowed");
235
233 b = (struct buffer *) xmalloc (sizeof (struct buffer)); 236 b = (struct buffer *) xmalloc (sizeof (struct buffer));
234 237
235 BUF_GAP_SIZE (b) = 20; 238 BUF_GAP_SIZE (b) = 20;