uxn

Varvara Ordinator, written in ANSI C(SDL2)
git clone https://git.eamoncaddigan.net/uxn.git
Log | Files | Refs | README | LICENSE

commit 3a11945fec9ddc32f73c0f54b8fb52081ba3f217
parent dc3170db98d9e44a88c66f0fb758f92e3a9aeb34
Author: Andrew Alderwick <andrew@alderwick.co.uk>
Date:   Fri,  5 Nov 2021 23:26:45 +0000

Fix null pointer dereference if File/name not set

Diffstat:
Msrc/devices/file.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/devices/file.c b/src/devices/file.c @@ -24,7 +24,7 @@ WITH REGARD TO THIS SOFTWARE. static FILE *f; static DIR *d; static int dir_fd; -static char *current_filename; +static char *current_filename = ""; static enum { IDLE, FILE_READ, FILE_WRITE,