diff options
| author | Eli Zaretskii | 2013-12-15 19:52:14 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2013-12-15 19:52:14 +0200 |
| commit | e088f894144198abdbf58bf41a5e7a6b6499fda6 (patch) | |
| tree | 8cdc8d0023633cb196c9718a638ac7a459b937d5 /src | |
| parent | 119f64dbf65b14c54cd26e64386ccb2e2a7091fc (diff) | |
| download | emacs-e088f894144198abdbf58bf41a5e7a6b6499fda6.tar.gz emacs-e088f894144198abdbf58bf41a5e7a6b6499fda6.zip | |
Minor fix in Windows-specific code in decode_env_path.
src/emacs.c (decode_env_path): Fix bogus comparison against
emacs_dir. Reported by Juanma Barranquero <lekktu@gmail.com>.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/emacs.c | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 1b19a309c04..da3b78e0f25 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2013-12-15 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * emacs.c (decode_env_path): Fix bogus comparison against | ||
| 4 | emacs_dir. Reported by Juanma Barranquero <lekktu@gmail.com>. | ||
| 5 | |||
| 1 | 2013-12-15 Juanma Barranquero <lekktu@gmail.com> | 6 | 2013-12-15 Juanma Barranquero <lekktu@gmail.com> |
| 2 | 7 | ||
| 3 | * w32fns.c (Fw32_shell_execute): Remove unused local variable. | 8 | * w32fns.c (Fw32_shell_execute): Remove unused local variable. |
diff --git a/src/emacs.c b/src/emacs.c index 9c5a33d5a89..2dfd12eff8b 100644 --- a/src/emacs.c +++ b/src/emacs.c | |||
| @@ -2224,7 +2224,8 @@ decode_env_path (const char *evarname, const char *defalt, bool empty) | |||
| 2224 | /* egetenv looks in process-environment, which holds the variables | 2224 | /* egetenv looks in process-environment, which holds the variables |
| 2225 | in their original system-locale encoding. We need emacs_dir to | 2225 | in their original system-locale encoding. We need emacs_dir to |
| 2226 | be in UTF-8. */ | 2226 | be in UTF-8. */ |
| 2227 | filename_from_ansi (edir, emacs_dir); | 2227 | if (edir) |
| 2228 | filename_from_ansi (edir, emacs_dir); | ||
| 2228 | #endif | 2229 | #endif |
| 2229 | 2230 | ||
| 2230 | /* It's okay to use getenv here, because this function is only used | 2231 | /* It's okay to use getenv here, because this function is only used |
| @@ -2299,7 +2300,7 @@ decode_env_path (const char *evarname, const char *defalt, bool empty) | |||
| 2299 | #ifdef WINDOWSNT | 2300 | #ifdef WINDOWSNT |
| 2300 | /* Relative file names in the default path are interpreted as | 2301 | /* Relative file names in the default path are interpreted as |
| 2301 | being relative to $emacs_dir. */ | 2302 | being relative to $emacs_dir. */ |
| 2302 | if (emacs_dir && defaulted | 2303 | if (edir && defaulted |
| 2303 | && strncmp (path, emacs_dir_env, emacs_dir_len) == 0) | 2304 | && strncmp (path, emacs_dir_env, emacs_dir_len) == 0) |
| 2304 | element = Fexpand_file_name (Fsubstring | 2305 | element = Fexpand_file_name (Fsubstring |
| 2305 | (element, | 2306 | (element, |