]> git.eshelyaron.com Git - emacs.git/commitdiff
* fileio.c (Fexpand_file_name): Omit confusing pointer comparison
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 10 Feb 2013 08:26:56 +0000 (00:26 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 10 Feb 2013 08:26:56 +0000 (00:26 -0800)
that was not needed.

src/ChangeLog
src/fileio.c

index 05d69382855f98cfbccfc75b595988eebac1388b..a9a92e0cbab2a7df8628aba7917d80e32a33665e 100644 (file)
@@ -1,3 +1,8 @@
+2013-02-10  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * fileio.c (Fexpand_file_name): Omit confusing pointer comparison
+       that was not needed.
+
 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
 
        Minor hashing refactoring.
index 1b293e3a97144c3d2d0a667eab0bebc779ab1548..ddf238671046a1226dfbfbee3ab2d434c5f4c15b 100644 (file)
@@ -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)