aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1995-08-29 15:32:00 +0000
committerRichard M. Stallman1995-08-29 15:32:00 +0000
commitd70fbccad6f3f087f703c5c6b7c937cd6de1008f (patch)
tree94ddcc91c3b631f38ff32069ea075f2213a92ea3 /src
parentb8e9a326c1ef46f02383189018718cf4c4562c15 (diff)
downloademacs-d70fbccad6f3f087f703c5c6b7c937cd6de1008f.tar.gz
emacs-d70fbccad6f3f087f703c5c6b7c937cd6de1008f.zip
(decode_env_path): Use ".", not nil, for current dir.
Diffstat (limited to 'src')
-rw-r--r--src/emacs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/emacs.c b/src/emacs.c
index ef84e0aac04..40ecc3d15bd 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -1348,7 +1348,8 @@ decode_env_path (evarname, defalt)
1348 { 1348 {
1349 p = index (path, SEPCHAR); 1349 p = index (path, SEPCHAR);
1350 if (!p) p = path + strlen (path); 1350 if (!p) p = path + strlen (path);
1351 lpath = Fcons (p - path ? make_string (path, p - path) : Qnil, 1351 lpath = Fcons (p - path ? make_string (path, p - path)
1352 : build_string ("."),
1352 lpath); 1353 lpath);
1353 if (*p) 1354 if (*p)
1354 path = p + 1; 1355 path = p + 1;