mirror of
https://github.com/libretro/RetroArch
synced 2025-03-19 16:21:30 +00:00
Update nbio_stdio.c
This commit is contained in:
parent
cfa388ed77
commit
4171b49b44
@ -45,7 +45,7 @@ struct nbio_t* nbio_open(const char * filename, enum nbio_mode_t mode)
|
||||
|
||||
handle->data = malloc(handle->len);
|
||||
|
||||
if (!handle->data)
|
||||
if (handle->len && !handle->data)
|
||||
{
|
||||
free(handle);
|
||||
fclose(f);
|
||||
|
Loading…
x
Reference in New Issue
Block a user