diff options
| author | Eric S. Raymond | 2023-08-09 00:02:22 -0400 |
|---|---|---|
| committer | Eric S. Raymond | 2023-08-09 00:02:51 -0400 |
| commit | dbca2e797abeaedb54a85c22ca004cc041ffec4d (patch) | |
| tree | b3a82b36e44d9e8430f4562db63331fa0723f327 | |
| parent | 5af838769d3edd11697319754b8d341957d8786d (diff) | |
| download | emacs-dbca2e797abeaedb54a85c22ca004cc041ffec4d.tar.gz 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.c | 1 |
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. */) | |||
| 2592 | { | 2592 | { |
| 2593 | Lisp_Object encoded_file; | 2593 | Lisp_Object encoded_file; |
| 2594 | 2594 | ||
| 2595 | CHECK_STRING (filename); | ||
| 2595 | filename = Fexpand_file_name (filename, Qnil); | 2596 | filename = Fexpand_file_name (filename, Qnil); |
| 2596 | encoded_file = ENCODE_FILE (filename); | 2597 | encoded_file = ENCODE_FILE (filename); |
| 2597 | 2598 | ||