diff src/buffer.c @ 6697:28e36f59e856

(Fget_buffer_create): Disallow empty string.
author Karl Heuer <kwzh@gnu.org>
date Wed, 06 Apr 1994 04:06:13 +0000
parents cf38c5af079d
children 121f2c5eba5e
line wrap: on
line diff
--- a/src/buffer.c	Wed Apr 06 03:47:00 1994 +0000
+++ b/src/buffer.c	Wed Apr 06 04:06:13 1994 +0000
@@ -230,6 +230,9 @@
   if (!NILP (buf))
     return buf;
 
+  if (XSTRING (name)->size == 0)
+    error ("Empty string for buffer name is not allowed");
+
   b = (struct buffer *) xmalloc (sizeof (struct buffer));
 
   BUF_GAP_SIZE (b) = 20;