diff options
author | Peter Wemm <peter@FreeBSD.org> | 2001-08-13 21:58:16 +0000 |
---|---|---|
committer | Peter Wemm <peter@FreeBSD.org> | 2001-08-13 21:58:16 +0000 |
commit | 668f24deaead8d3a8dd1a4b2e221833e0234b1e6 (patch) | |
tree | 813939d664e7a071a7800aaa7f092bbc9074c264 /usr.bin/tcopy/tcopy.c | |
parent | ec26f57025e13d04ee39e033ba1e5475203e185f (diff) | |
download | src-668f24deaead8d3a8dd1a4b2e221833e0234b1e6.tar.gz src-668f24deaead8d3a8dd1a4b2e221833e0234b1e6.zip |
Initialize msg in main()
Notes
Notes:
svn path=/head/; revision=81607
Diffstat (limited to 'usr.bin/tcopy/tcopy.c')
-rw-r--r-- | usr.bin/tcopy/tcopy.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/tcopy/tcopy.c b/usr.bin/tcopy/tcopy.c index d29153701bdb..79483cbdd7a0 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) { |