(decode_env_path): Use ".", not nil, for current dir.

This commit is contained in:
Richard M. Stallman 1995-08-29 15:32:00 +00:00
parent b8e9a326c1
commit d70fbccad6

View file

@ -1348,7 +1348,8 @@ decode_env_path (evarname, defalt)
{
p = index (path, SEPCHAR);
if (!p) p = path + strlen (path);
lpath = Fcons (p - path ? make_string (path, p - path) : Qnil,
lpath = Fcons (p - path ? make_string (path, p - path)
: build_string ("."),
lpath);
if (*p)
path = p + 1;