diff options
author | Karl Heuer <[email protected]> | 1994-04-06 04:06:13 +0000 |
---|---|---|
committer | Karl Heuer <[email protected]> | 1994-04-06 04:06:13 +0000 |
commit | 31cd83e9449ad163e0db7a79cb392d38958b2879 (patch) | |
tree | 8363c091c2180fd270878b0f97a38433303c591b /src | |
parent | c1279c7d3e931e45ba7acc1fb13b65bc817434c3 (diff) |
(Fget_buffer_create): Disallow empty string.
Diffstat (limited to 'src')
-rw-r--r-- | src/buffer.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/buffer.c b/src/buffer.c index d8742eb2c6..38593b486c 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; |