summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-02-01 22:52:45 +0000
committerJim Meyering <jim@meyering.net>2003-02-01 22:52:45 +0000
commita881942cca6559f06c7977e273e4357cd2a3116a (patch)
tree099eda02e32290d099e973eeb3d3dd52943d05c5 /src
parent7df6daf8a468f051a7316ede794d139d07352419 (diff)
downloadcoreutils-a881942cca6559f06c7977e273e4357cd2a3116a.tar.xz
Don't put decl after non-decl.
Diffstat (limited to 'src')
-rw-r--r--src/du.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/du.c b/src/du.c
index eda233b02..9419e0fae 100644
--- 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;