From ab01f4338580de5120cd4756b45c11e4bf2e8094 Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Mon, 13 Aug 2001 21:54:47 +0000 Subject: [PATCH] Initialize listf at main() --- bin/pax/pax.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/pax/pax.c b/bin/pax/pax.c index 3d5bd4dc412d..3b0f13475ec7 100644 --- a/bin/pax/pax.c +++ b/bin/pax/pax.c @@ -104,7 +104,7 @@ int docrc; /* check/create file crc */ char *dirptr; /* destination dir in a copy */ char *argv0; /* root of argv[0] */ sigset_t s_mask; /* signal mask for cleanup critical sect */ -FILE *listf = stderr; /* file pointer to print file list to */ +FILE *listf; /* file pointer to print file list to */ char *tempfile; /* tempfile to use for mkstemp(3) */ char *tempbase; /* basename of tempfile to use for mkstemp(3) */ @@ -242,6 +242,7 @@ main(argc, argv) size_t tdlen; (void) setlocale(LC_ALL, ""); + listf = stderr; /* * Keep a reference to cwd, so we can always come back home. */