Initialize debugf in main()

This commit is contained in:
Peter Wemm 2001-08-13 21:56:39 +00:00
parent 98815cc740
commit c7a12b501b
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)