Avoid assertion violation in directory-files
* src/dired.c (directory_files_internal): Make sure MATCH is either nil or a string. (Bug#33889)
This commit is contained in:
parent
13dfe15ef4
commit
a8576aba8f
1 changed files with 3 additions and 0 deletions
|
@ -236,6 +236,9 @@ directory_files_internal (Lisp_Object directory, Lisp_Object full,
|
|||
#endif
|
||||
;
|
||||
|
||||
if (!NILP (match))
|
||||
CHECK_STRING (match);
|
||||
|
||||
/* Loop reading directory entries. */
|
||||
for (struct dirent *dp; (dp = read_dirent (d, directory)); )
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue