1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-04-21 13:31:37 -07:00

(Fexpand_file_name): Add declaration for `p' missing in previous change.

This commit is contained in:
Juanma Barranquero 2008-04-12 09:15:10 +00:00
parent 5b5a2ea177
commit f5acc07172
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2008-04-12 Juanma Barranquero <lekktu@gmail.com>
* fileio.c (Fexpand_file_name): Add declaration for `p' missing in
previous change.
2008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
* fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
@ -20,7 +25,7 @@
2008-04-10 Michael Albinus <michael.albinus@gmx.de>
* fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
only after check for file name handler functions. Signal, when
only after check for file name handler functions. Signal, when
native functionality is not supported.
(syms_of_fileio): Declare it unconditionally.

View file

@ -1545,6 +1545,7 @@ See also the function `substitute-in-file-name'. */)
#ifdef WINDOWSNT
if (IS_DIRECTORY_SEP (newdir[0]) && IS_DIRECTORY_SEP (newdir[1]))
{
unsigned char *p;
newdir = strcpy (alloca (strlen (newdir) + 1), newdir);
p = newdir + 2;
while (*p && !IS_DIRECTORY_SEP (*p)) p++;