diff options
Diffstat (limited to 'src/fileio.c')
| -rw-r--r-- | src/fileio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fileio.c b/src/fileio.c index 1b293e3a971..ddf23867104 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -1348,8 +1348,8 @@ filesystem tree, not (expand-file-name ".." dirname). */) #ifdef WINDOWSNT char *prev_o = o; #endif - while (o != target && (--o) && !IS_DIRECTORY_SEP (*o)) - ; + while (o != target && (--o, !IS_DIRECTORY_SEP (*o))) + continue; #ifdef WINDOWSNT /* Don't go below server level in UNC filenames. */ if (o == target + 1 && IS_DIRECTORY_SEP (*o) |
