]> Dogcows Code - chaz/tar/commitdiff
(decode_options): Initialize stdlis
authorSergey Poznyakoff <gray@gnu.org.ua>
Thu, 6 Jul 2006 20:07:37 +0000 (20:07 +0000)
committerSergey Poznyakoff <gray@gnu.org.ua>
Thu, 6 Jul 2006 20:07:37 +0000 (20:07 +0000)
src/tar.c

index ff3c5c957cf4270426b940335c4181d50aeb37a9..1e0f95ddd8f42117dd1701f9d642e5538ff0ce33 100644 (file)
--- a/src/tar.c
+++ b/src/tar.c
@@ -2198,6 +2198,16 @@ decode_options (int argc, char **argv)
       break;
     }
 
+  /* Initialize stdlis */
+  if (index_file_name)
+    {
+      stdlis = fopen (index_file_name, "w");
+      if (! stdlis)
+       open_error (index_file_name);
+    }
+  else
+    stdlis = to_stdout_option ? stderr : stdout;
+
   archive_name_cursor = archive_name_array;
 
   /* Prepare for generating backup names.  */
This page took 0.020535 seconds and 4 git commands to generate.