From: Jim Meyering Date: Mon, 31 Aug 2009 14:32:40 +0000 (+0200) Subject: canonicalize: remove useless initialization X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=08999eb3be233d8c54c9fe00c5c263247265e897;p=pspp canonicalize: remove useless initialization * lib/canonicalize.c (canonicalize_filename_mode): Remove useless initialization of local, "end". --- diff --git a/ChangeLog b/ChangeLog index 7dee308a12..4883188d7f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2009-08-31 Jim Meyering + + canonicalize: remove useless initialization + * lib/canonicalize.c (canonicalize_filename_mode): Remove useless + initialization of local, "end". + 2009-08-30 Bruno Haible Fix an unnecessary error on Solaris 10 on NFSv3 file systems. diff --git a/lib/canonicalize.c b/lib/canonicalize.c index 4f348398fd..37446545cd 100644 --- a/lib/canonicalize.c +++ b/lib/canonicalize.c @@ -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 == '/')