summaryrefslogtreecommitdiffstats
path: root/usr.bin/tcopy
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2001-08-13 21:58:16 +0000
committerpeter <peter@FreeBSD.org>2001-08-13 21:58:16 +0000
commit46b62d9c13063236cddb2fc0404a3293fdb992db (patch)
tree813939d664e7a071a7800aaa7f092bbc9074c264 /usr.bin/tcopy
parent7e27631a25e657b0d32dae3e4a604e068c35d801 (diff)
downloadFreeBSD-src-46b62d9c13063236cddb2fc0404a3293fdb992db.zip
FreeBSD-src-46b62d9c13063236cddb2fc0404a3293fdb992db.tar.gz
Initialize msg in main()
Diffstat (limited to 'usr.bin/tcopy')
-rw-r--r--usr.bin/tcopy/tcopy.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/tcopy/tcopy.c b/usr.bin/tcopy/tcopy.c
index d291537..79483cb 100644
--- a/usr.bin/tcopy/tcopy.c
+++ b/usr.bin/tcopy/tcopy.c
@@ -65,7 +65,7 @@ static const char rcsid[] =
int filen, guesslen, maxblk = MAXREC;
u_int64_t lastrec, record, size, tsize;
-FILE *msg = stdout;
+FILE *msg;
void *getspace __P((int));
void intr __P((int));
@@ -85,6 +85,7 @@ main(argc, argv)
int ch, needeof;
char *buff, *inf;
+ msg = stdout;
guesslen = 1;
while ((ch = getopt(argc, argv, "cs:vx")) != -1)
switch((char)ch) {
OpenPOWER on IntegriCloud