]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Don't put decl after non-decl.
authorJim Meyering <jim@meyering.net>
Sat, 1 Feb 2003 22:52:45 +0000 (22:52 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 1 Feb 2003 22:52:45 +0000 (22:52 +0000)
src/du.c

index eda233b02b7c99005d563d617400904efb207f6e..9419e0faeeeb1ee323da85e6c387229216012eb7 100644 (file)
--- a/src/du.c
+++ b/src/du.c
@@ -512,8 +512,9 @@ du_files (char **files, int ftw_flags)
          /* Append `/.', but if there's already a trailing slash,
             append only the `.'.  */
          char const *suffix = (file[len - 1] == '/' ? "." : "/.");
+         char *new_file;
          suffix_length = strlen (suffix);
-         char *new_file = xmalloc (len + suffix_length + 1);
+         new_file = xmalloc (len + suffix_length + 1);
          memcpy (mempcpy (new_file, file, len), suffix, suffix_length + 1);
          arg_length = len;
          file = new_file;