Commit 31cd83e9 authored by Karl Heuer's avatar Karl Heuer

(Fget_buffer_create): Disallow empty string.

parent c1279c7d
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment