aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/doscmd
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>2001-08-13 21:56:39 +0000
committerPeter Wemm <peter@FreeBSD.org>2001-08-13 21:56:39 +0000
commitc7a12b501b375172688d4142f2df0a1945bffb41 (patch)
tree9aa3d668719071d3672173d223d02a9486a6af13 /usr.bin/doscmd
parent98815cc740de9d1f2a5a6ac92004c6a21a8fa38a (diff)
downloadsrc-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.c2
-rw-r--r--usr.bin/doscmd/doscmd.c1
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)