Initialize debugf in main()
This commit is contained in:
parent
98815cc740
commit
c7a12b501b
@ -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;
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user