From: Andreas Schwab Date: Sun, 5 Aug 2012 21:44:21 +0000 (+0200) Subject: * emacs.c (decode_env_path): Only use defaulted if WINDOWSNT. X-Git-Tag: emacs-24.2.90~839 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8671676ca159dcf36f1791936bcc50c73319af42;p=emacs.git * emacs.c (decode_env_path): Only use defaulted if WINDOWSNT. --- diff --git a/src/ChangeLog b/src/ChangeLog index 55433577cee..61e7c3d8c23 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2012-08-05 Andreas Schwab + + * emacs.c (decode_env_path): Only use defaulted if WINDOWSNT. + 2012-08-05 Dmitry Antipov Generalize common compile-time constants. diff --git a/src/emacs.c b/src/emacs.c index 223d125db32..8d458c612cc 100644 --- a/src/emacs.c +++ b/src/emacs.c @@ -2242,8 +2242,8 @@ decode_env_path (const char *evarname, const char *defalt) { const char *path, *p; Lisp_Object lpath, element, tem; - int defaulted = 0; #ifdef WINDOWSNT + int defaulted = 0; const char *emacs_dir = egetenv ("emacs_dir"); static const char *emacs_dir_env = "%emacs_dir%/"; const size_t emacs_dir_len = strlen (emacs_dir_env); @@ -2259,7 +2259,9 @@ decode_env_path (const char *evarname, const char *defalt) if (!path) { path = defalt; +#ifdef WINDOWSNT defaulted = 1; +#endif } #ifdef DOS_NT /* Ensure values from the environment use the proper directory separator. */