changeset 6697:28e36f59e856

(Fget_buffer_create): Disallow empty string.
author Karl Heuer <kwzh@gnu.org>
date Wed, 06 Apr 1994 04:06:13 +0000
parents 097fa44199ab
children b107e54218fe
files src/buffer.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
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;