(cp_option_init): Initialize new member.
authorJim Meyering <jim@meyering.net>
Thu, 22 Nov 2001 10:54:05 +0000 (10:54 +0000)
committerJim Meyering <jim@meyering.net>
Thu, 22 Nov 2001 10:54:05 +0000 (10:54 +0000)
(main): dest_info_init now takes a parameter.

src/install.c

index 9d00f86..9605bd8 100644 (file)
@@ -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);