mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
(cp_option_init): Initialize new member.
(main): dest_info_init now takes a parameter.
This commit is contained in:
1 parent
6b5ddbc2c9
commit
8cd4321b8b
1 file changed
+2
-1
+2
-1
@@ -173,6 +173,7 @@ cp_option_init (struct cp_options *x)
|
||||
x->update = 0;
|
||||
x->verbose = 0;
|
||||
x->xstat = stat;
|
||||
x->dest_info = NULL;
|
||||
}
|
||||
|
||||
int
|
||||
@@ -337,7 +338,7 @@ is not a directory"),
|
||||
usage (1);
|
||||
}
|
||||
|
||||
dest_info_init ();
|
||||
dest_info_init (&x);
|
||||
for (i = 0; i < n_files - 1; i++)
|
||||
{
|
||||
errors |= install_file_in_dir (file[i], dest, &x);
|
||||
|
||||
Reference in new issue
Block a user