Initialize debugf in main()

This commit is contained in:
peter 2001-08-13 21:56:39 +00:00
parent 61bf775b8a
commit 373ef9952e
2 changed files with 2 additions and 1 deletions

View File

@ -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;

View File

@ -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)