Fix bug with conditionals in expand-file-name on MS-Windows.
authorEli Zaretskii <eliz@gnu.org>
Sun, 15 Dec 2013 20:39:36 +0000 (22:39 +0200)
committerEli Zaretskii <eliz@gnu.org>
Sun, 15 Dec 2013 20:39:36 +0000 (22:39 +0200)
 src/fileio.c (Fexpand_file_name) [WINDOWSNT]: Fix conditionals.
 Reported by Juanma Barranquero <lekktu@gmail.com>.

src/ChangeLog
src/fileio.c

index d2ea150..d5c84d0 100644 (file)
@@ -1,5 +1,8 @@
 2013-12-15  Eli Zaretskii  <eliz@gnu.org>
 
+       * fileio.c (Fexpand_file_name) [WINDOWSNT]: Fix conditionals.
+       Reported by Juanma Barranquero <lekktu@gmail.com>.
+
        * process.c (Fprocess_send_eof): Don't crash if someone tries to
        open a pty on MS-Windows.  (Bug#16152)
 
index 02bde86..47736d2 100644 (file)
@@ -1168,9 +1168,8 @@ filesystem tree, not (expand-file-name ".."  dirname).  */)
              tem = build_string (newdir_utf8);
            }
          else
-#else
-           tem = build_string (newdir);
 #endif
+           tem = build_string (newdir);
          if (multibyte && !STRING_MULTIBYTE (tem))
            {
              hdir = DECODE_FILE (tem);