From a8576aba8fa45549985566bc8be4921dce508dd9 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Thu, 27 Dec 2018 18:52:30 +0200 Subject: [PATCH] Avoid assertion violation in directory-files * src/dired.c (directory_files_internal): Make sure MATCH is either nil or a string. (Bug#33889) --- src/dired.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/dired.c b/src/dired.c index b81e35384ea..3f5c93b5732 100644 --- a/src/dired.c +++ b/src/dired.c @@ -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)); ) { -- 2.39.5