emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r111720: * fileio.c (Fexpand_file_nam


From: Paul Eggert
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r111720: * fileio.c (Fexpand_file_name): Omit confusing pointer comparison
Date: Sun, 10 Feb 2013 00:26:56 -0800
User-agent: Bazaar (2.5.0)

------------------------------------------------------------
revno: 111720
committer: Paul Eggert <address@hidden>
branch nick: trunk
timestamp: Sun 2013-02-10 00:26:56 -0800
message:
  * fileio.c (Fexpand_file_name): Omit confusing pointer comparison
  
  that was not needed.
modified:
  src/ChangeLog
  src/fileio.c
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2013-02-09 22:42:33 +0000
+++ b/src/ChangeLog     2013-02-10 08:26:56 +0000
@@ -1,3 +1,8 @@
+2013-02-10  Paul Eggert  <address@hidden>
+
+       * fileio.c (Fexpand_file_name): Omit confusing pointer comparison
+       that was not needed.
+
 2013-02-09  Paul Eggert  <address@hidden>
 
        Minor hashing refactoring.

=== modified file 'src/fileio.c'
--- a/src/fileio.c      2013-02-04 16:33:30 +0000
+++ b/src/fileio.c      2013-02-10 08:26:56 +0000
@@ -1348,8 +1348,8 @@
 #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)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]