Browse code

Fix null pointer dereference if File/name not set

Andrew Alderwick authored on 05/11/2021 23:26:45
Showing 1 changed files
... ...
@@ -24,7 +24,7 @@ WITH REGARD TO THIS SOFTWARE.
24 24
 static FILE *f;
25 25
 static DIR *d;
26 26
 static int dir_fd;
27
-static char *current_filename;
27
+static char *current_filename = "";
28 28
 static enum { IDLE,
29 29
 	FILE_READ,
30 30
 	FILE_WRITE,