Small cleanup

This commit is contained in:
twinaphex 2015-09-18 05:44:13 +02:00
parent c4910985ed
commit c8df945792
1 changed files with 2 additions and 1 deletions

View File

@ -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;