aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
authorKarl Heuer1994-04-06 04:06:13 +0000
committerKarl Heuer1994-04-06 04:06:13 +0000
commit31cd83e9449ad163e0db7a79cb392d38958b2879 (patch)
tree8363c091c2180fd270878b0f97a38433303c591b /src/buffer.c
parentc1279c7d3e931e45ba7acc1fb13b65bc817434c3 (diff)
downloademacs-31cd83e9449ad163e0db7a79cb392d38958b2879.tar.gz
emacs-31cd83e9449ad163e0db7a79cb392d38958b2879.zip
(Fget_buffer_create): Disallow empty string.
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c3
1 files changed, 3 insertions, 0 deletions
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.")
230 if (!NILP (buf)) 230 if (!NILP (buf))
231 return buf; 231 return buf;
232 232
233 if (XSTRING (name)->size == 0)
234 error ("Empty string for buffer name is not allowed");
235
233 b = (struct buffer *) xmalloc (sizeof (struct buffer)); 236 b = (struct buffer *) xmalloc (sizeof (struct buffer));
234 237
235 BUF_GAP_SIZE (b) = 20; 238 BUF_GAP_SIZE (b) = 20;