mirror of
https://github.com/libretro/RetroArch.git
synced 2025-04-02 10:51:52 -04:00
Cleanup in read_generic_file
This commit is contained in:
parent
40f12007aa
commit
35c2d74d1a
1 changed files with 1 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue