From fa3136e07148ab37fabc52007f531e71e41a1d5a Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Mon, 23 Apr 2018 20:48:12 +0300 Subject: [PATCH] Fix recent change in lread.c * src/lread.c (openp): Avoid assertion violations in XCDR when PATH is nil. (Bug#31229) --- src/lread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lread.c b/src/lread.c index 69b53629ec1..b8db117c79c 100644 --- a/src/lread.c +++ b/src/lread.c @@ -1772,7 +1772,7 @@ openp (Lisp_Object path, Lisp_Object str, Lisp_Object suffixes, } } } - if (absolute) + if (absolute || NILP (path)) break; path = XCDR (path); } while (CONSP (path));