diff --git a/src/fileio.c b/src/fileio.c index 4c00f1e5ff4..14e39445efa 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -2592,6 +2592,7 @@ If file has multiple names, it continues to exist with the other names. */) { Lisp_Object encoded_file; + CHECK_STRING (filename); filename = Fexpand_file_name (filename, Qnil); encoded_file = ENCODE_FILE (filename);