diff options
author | Peter Wemm <peter@FreeBSD.org> | 2001-08-13 21:56:39 +0000 |
---|---|---|
committer | Peter Wemm <peter@FreeBSD.org> | 2001-08-13 21:56:39 +0000 |
commit | c7a12b501b375172688d4142f2df0a1945bffb41 (patch) | |
tree | 9aa3d668719071d3672173d223d02a9486a6af13 /usr.bin/doscmd | |
parent | 98815cc740de9d1f2a5a6ac92004c6a21a8fa38a (diff) | |
download | src-c7a12b501b375172688d4142f2df0a1945bffb41.tar.gz src-c7a12b501b375172688d4142f2df0a1945bffb41.zip |
Initialize debugf in main()
Notes
Notes:
svn path=/head/; revision=81605
Diffstat (limited to 'usr.bin/doscmd')
-rw-r--r-- | usr.bin/doscmd/debug.c | 2 | ||||
-rw-r--r-- | usr.bin/doscmd/doscmd.c | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/doscmd/debug.c b/usr.bin/doscmd/debug.c index b68f6900aa08..bbae1454deda 100644 --- a/usr.bin/doscmd/debug.c +++ b/usr.bin/doscmd/debug.c @@ -41,7 +41,7 @@ #include "tty.h" /* debug output goes here */ -FILE *debugf = stderr; +FILE *debugf; /* see doscmd.h for flag names */ int debug_flags = D_ALWAYS; diff --git a/usr.bin/doscmd/doscmd.c b/usr.bin/doscmd/doscmd.c index 3bc58f6dd653..5b189e25f2b2 100644 --- a/usr.bin/doscmd/doscmd.c +++ b/usr.bin/doscmd/doscmd.c @@ -119,6 +119,7 @@ main(int argc, char **argv) int fd; int i; + debugf = stderr; /* XXX should only be for tty mode */ fd = open (_PATH_DEVNULL, O_RDWR); if (fd != 3) |