mirror of
https://github.com/libretro/RetroArch
synced 2025-03-31 19:21:06 +00:00
(file_ops.c) Prevent warning
This commit is contained in:
parent
c8b041ef7d
commit
3dfa505bf2
@ -654,7 +654,7 @@ bool write_file(const char *path, const void *data, ssize_t size)
|
|||||||
static int read_generic_file(const char *path, void **buf, ssize_t *len)
|
static int read_generic_file(const char *path, void **buf, ssize_t *len)
|
||||||
{
|
{
|
||||||
size_t bytes_read = 0;
|
size_t bytes_read = 0;
|
||||||
size_t content_buf_size = 0;
|
ssize_t content_buf_size = 0;
|
||||||
void *content_buf = NULL;
|
void *content_buf = NULL;
|
||||||
FILE *file = fopen(path, "rb");
|
FILE *file = fopen(path, "rb");
|
||||||
|
|
||||||
@ -665,7 +665,7 @@ static int read_generic_file(const char *path, void **buf, ssize_t *len)
|
|||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
content_buf_size = ftell(file);
|
content_buf_size = ftell(file);
|
||||||
if (content_buf_size < 0)
|
if (content_buf_size == -1)
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
rewind(file);
|
rewind(file);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user