aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/etags.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib-src/etags.c b/lib-src/etags.c
index c31366d56d0..7c049568a2a 100644
--- a/lib-src/etags.c
+++ b/lib-src/etags.c
@@ -1033,7 +1033,11 @@ process_file (file)
1033 { 1033 {
1034 char *filename; 1034 char *filename;
1035 1035
1036#ifdef DOS_NT
1037 if (file[0] == '/' || (isalpha (file[0]) && file[1] == ':'))
1038#else
1036 if (file[0] == '/') 1039 if (file[0] == '/')
1040#endif
1037 { 1041 {
1038 /* file is an absolute filename. Canonicalise it. */ 1042 /* file is an absolute filename. Canonicalise it. */
1039 filename = absolute_filename (file, cwd); 1043 filename = absolute_filename (file, cwd);
@@ -3747,7 +3751,11 @@ absolute_filename (file, cwd)
3747{ 3751{
3748 char *slashp, *cp, *res; 3752 char *slashp, *cp, *res;
3749 3753
3754#ifdef DOS_NT
3755 if (file[0] == '/' || (isalpha (file[0]) && file[1] == ':'))
3756#else
3750 if (file[0] == '/') 3757 if (file[0] == '/')
3758#endif
3751 res = concat (file, "", ""); 3759 res = concat (file, "", "");
3752 else 3760 else
3753 res = concat (cwd, file, ""); 3761 res = concat (cwd, file, "");