1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-26 07:11:34 -08:00

(Fmake_indirect_buffer): Check that NAME is a string.

This commit is contained in:
Andreas Schwab 2004-04-12 12:13:03 +00:00
parent 6e56e52681
commit ab53e06559

View file

@ -532,6 +532,7 @@ CLONE nil means the indirect buffer's state is reset to default values. */)
Lisp_Object buf;
struct buffer *b;
CHECK_STRING (name);
buf = Fget_buffer (name);
if (!NILP (buf))
error ("Buffer name `%s' is in use", SDATA (name));