1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-21 10:24:55 +00:00

Fix recent change in lread.c

* src/lread.c (openp): Avoid assertion violations in XCDR when
PATH is nil.  (Bug#31229)
This commit is contained in:
Eli Zaretskii 2018-04-23 20:48:12 +03:00
parent 3c6b59918a
commit fa3136e071

View File

@ -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));