mirror of
https://github.com/libretro/RetroArch
synced 2025-02-21 09:39:56 +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)
|
if (_len < 0)
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
if (fseek(file, 0, SEEK_SET) != 0)
|
rewind(file);
|
||||||
goto error;
|
|
||||||
|
|
||||||
rom_buf = malloc(_len + 1);
|
rom_buf = malloc(_len + 1);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user