aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/inputStream_file.c2
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;
}