diff options
Diffstat (limited to 'src/inputStream_file.c')
-rw-r--r-- | src/inputStream_file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/inputStream_file.c b/src/inputStream_file.c index 0cfe0c639..edc68ef66 100644 --- a/src/inputStream_file.c +++ b/src/inputStream_file.c @@ -86,8 +86,8 @@ size_t inputStream_fileRead(InputStream * inStream, void * ptr, size_t size, int inputStream_fileClose(InputStream * inStream) { if(fclose((FILE *)inStream->data)<0) { inStream->error = errno; + return -1; } - else return -1; return 0; } |