From: Karl Heuer Date: Wed, 6 Apr 1994 04:06:13 +0000 (+0000) Subject: (Fget_buffer_create): Disallow empty string. X-Git-Tag: emacs-19.34~9155 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=31cd83e9449ad163e0db7a79cb392d38958b2879;p=emacs.git (Fget_buffer_create): Disallow empty string. --- 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.") 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;