Fix null pointer dereference if File/name not set
This commit is contained in:
parent
dc3170db98
commit
3a11945fec
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue