1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-20 18:56:39 +02:00

Don't put decl after non-decl.

This commit is contained in:
Jim Meyering
2003-02-01 22:52:45 +00:00
parent 7df6daf8a4
commit a881942cca

View File

@@ -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;