]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(cp_option_init): Initialize new member.
authorJim Meyering <jim@meyering.net>
Thu, 22 Nov 2001 10:54:31 +0000 (10:54 +0000)
committerJim Meyering <jim@meyering.net>
Thu, 22 Nov 2001 10:54:31 +0000 (10:54 +0000)
(main): dest_info_init now takes a parameter.

src/mv.c

index f235dca9c289cb7b2d3b5d04e2349b6b20ec9d7a..1266adbf5272b0c4b91700a261ad0a1a59ce98a4 100644 (file)
--- a/src/mv.c
+++ b/src/mv.c
@@ -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);