From: Sergey Poznyakoff Date: Thu, 6 Jul 2006 20:07:37 +0000 (+0000) Subject: (decode_options): Initialize stdlis X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=36fe16aaf5ff2761fca6486a5416ca9bcce5717e;p=chaz%2Ftar (decode_options): Initialize stdlis --- diff --git a/src/tar.c b/src/tar.c index ff3c5c9..1e0f95d 100644 --- 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. */