mirror of
https://github.com/libretro/RetroArch
synced 2025-02-20 06:40:18 +00:00
Cleanup in read_generic_file
This commit is contained in:
parent
40f12007aa
commit
35c2d74d1a
@ -114,8 +114,7 @@ static bool read_generic_file(const char *path, void **buf, ssize_t *len)
|
||||
if (_len < 0)
|
||||
goto error;
|
||||
|
||||
if (fseek(file, 0, SEEK_SET) != 0)
|
||||
goto error;
|
||||
rewind(file);
|
||||
|
||||
rom_buf = malloc(_len + 1);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user