From c8df945792237db7b1ab7c9e5c0162d711b02f8a Mon Sep 17 00:00:00 2001 From: twinaphex Date: Fri, 18 Sep 2015 05:44:13 +0200 Subject: [PATCH] Small cleanup --- libretro-common/file/retro_file.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libretro-common/file/retro_file.c b/libretro-common/file/retro_file.c index eca5b20bab..7e7823492e 100644 --- a/libretro-common/file/retro_file.c +++ b/libretro-common/file/retro_file.c @@ -124,10 +124,11 @@ RFILE *retro_fopen(const char *path, unsigned mode, ssize_t len) #if defined(HAVE_BUFFERED_IO) if (!stream->fd) + goto error; #else if (stream->fd == -1) + goto error #endif - goto error; return stream;