summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2001-08-13 21:54:47 +0000
committerpeter <peter@FreeBSD.org>2001-08-13 21:54:47 +0000
commitd58a143b4f62f3208aacf88e3ce0842a86862a92 (patch)
tree29e81abb8158670ad486e2f278aaaccbf62ab119 /bin
parent3e5894fd23a47dea1c37133433e493126bb1cd21 (diff)
downloadFreeBSD-src-d58a143b4f62f3208aacf88e3ce0842a86862a92.zip
FreeBSD-src-d58a143b4f62f3208aacf88e3ce0842a86862a92.tar.gz
Initialize listf at main()
Diffstat (limited to 'bin')
-rw-r--r--bin/pax/pax.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/pax/pax.c b/bin/pax/pax.c
index 3d5bd4d..3b0f134 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.
*/
OpenPOWER on IntegriCloud