diff options
author | Jim Meyering <jim@meyering.net> | 2001-11-22 10:54:31 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2001-11-22 10:54:31 +0000 |
commit | 42ad428793e4d2e8c43ef389cfcfd06aa17949d9 (patch) | |
tree | 1961308fb5abf0a4050aa7f4b14da6b91d817a24 /src | |
parent | 8cd4321b8bd3b166bae966c3d6fe59e890d136e9 (diff) | |
download | coreutils-42ad428793e4d2e8c43ef389cfcfd06aa17949d9.tar.xz |
(cp_option_init): Initialize new member.
(main): dest_info_init now takes a parameter.
Diffstat (limited to 'src')
-rw-r--r-- | src/mv.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -148,6 +148,7 @@ cp_option_init (struct cp_options *x) x->update = 0; x->verbose = 0; x->xstat = lstat; + x->dest_info = NULL; } /* If PATH is an existing directory, return nonzero, else 0. */ @@ -505,7 +506,7 @@ main (int argc, char **argv) The problem it is used to detect can arise only if there are two or more files to move. */ if (last_file_idx) - dest_info_init (); + dest_info_init (&x); for (i = 0; i <= last_file_idx; ++i) errors |= movefile (file[i], target_directory, dest_is_dir, &x); |