From 7ba11bee64c8b4c735e016bb28aa3ee6ff7990f5 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sun, 10 Feb 2013 00:26:56 -0800 Subject: [PATCH] * fileio.c (Fexpand_file_name): Omit confusing pointer comparison that was not needed. --- src/ChangeLog | 5 +++++ src/fileio.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 05d69382855..a9a92e0cbab 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2013-02-10 Paul Eggert + + * fileio.c (Fexpand_file_name): Omit confusing pointer comparison + that was not needed. + 2013-02-09 Paul Eggert Minor hashing refactoring. 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) -- 2.39.5