summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2023-08-09 00:02:22 -0400
committerEric S. Raymond <esr@thyrsus.com>2023-08-09 00:02:51 -0400
commitdbca2e797abeaedb54a85c22ca004cc041ffec4d (patch)
treeb3a82b36e44d9e8430f4562db63331fa0723f327
parent5af838769d3edd11697319754b8d341957d8786d (diff)
downloademacs-dbca2e797abeaedb54a85c22ca004cc041ffec4d.tar.gz
emacs-dbca2e797abeaedb54a85c22ca004cc041ffec4d.tar.bz2
emacs-dbca2e797abeaedb54a85c22ca004cc041ffec4d.zip
Add a string check to delete-file-internal.
* src/fileio.c (delete-file-internal): Argument should be a string.
-rw-r--r--src/fileio.c1
1 files changed, 1 insertions, 0 deletions
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);