Return -1 on error, not on success.
git-svn-id: https://svn.musicpd.org/mpd/trunk@4247 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
parent
c6d110f975
commit
2eb5ebc4ed
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user