From 36fe16aaf5ff2761fca6486a5416ca9bcce5717e Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Thu, 6 Jul 2006 20:07:37 +0000 Subject: [PATCH] (decode_options): Initialize stdlis --- src/tar.c | 10 ++++++++++ 1 file changed, 10 insertions(+) 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. */ -- 2.44.0