Commit a8576aba authored by Eli Zaretskii's avatar Eli Zaretskii

Avoid assertion violation in directory-files

* src/dired.c (directory_files_internal): Make sure MATCH is
either nil or a string.  (Bug#33889)
parent 13dfe15e
Pipeline #382 failed with stage
in 6 seconds
......@@ -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)); )
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment