canonicalize: remove useless initialization
authorJim Meyering <meyering@redhat.com>
Mon, 31 Aug 2009 14:32:40 +0000 (16:32 +0200)
committerJim Meyering <meyering@redhat.com>
Mon, 31 Aug 2009 14:33:03 +0000 (16:33 +0200)
* lib/canonicalize.c (canonicalize_filename_mode): Remove useless
initialization of local, "end".

ChangeLog
lib/canonicalize.c

index 7dee308..4883188 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-08-31  Jim Meyering  <meyering@redhat.com>
+
+       canonicalize: remove useless initialization
+       * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
+       initialization of local, "end".
+
 2009-08-30  Bruno Haible  <bruno@clisp.org>
 
        Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
index 4f34839..3744654 100644 (file)
@@ -1,5 +1,5 @@
 /* Return the canonical absolute name of a given file.
-   Copyright (C) 1996-2008 Free Software Foundation, Inc.
+   Copyright (C) 1996-2009 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -199,7 +199,7 @@ canonicalize_filename_mode (const char *name, canonicalize_mode_t can_mode)
       dest = rname + 1;
     }
 
-  for (start = end = name; *start; start = end)
+  for (start = name; *start; start = end)
     {
       /* Skip sequence of multiple file name separators.  */
       while (*start == '/')