Fix null pointer dereference if File/name not set

This commit is contained in:
Andrew Alderwick 2021-11-05 23:26:45 +00:00
parent dc3170db98
commit 3a11945fec
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ WITH REGARD TO THIS SOFTWARE.
static FILE *f; static FILE *f;
static DIR *d; static DIR *d;
static int dir_fd; static int dir_fd;
static char *current_filename; static char *current_filename = "";
static enum { IDLE, static enum { IDLE,
FILE_READ, FILE_READ,
FILE_WRITE, FILE_WRITE,