diff options
author | J. Alexander Treuman <jat@spatialrift.net> | 2006-06-04 17:27:12 +0000 |
---|---|---|
committer | J. Alexander Treuman <jat@spatialrift.net> | 2006-06-04 17:27:12 +0000 |
commit | 2eb5ebc4ed04b2d8f12af56a5201019fb9992be1 (patch) | |
tree | 65c6f9010b457596929755942531ed30d2ab090f /src/inputStream_file.c | |
parent | c6d110f975ddbdd3763439e97ac0307967d08adf (diff) | |
download | mpd-2eb5ebc4ed04b2d8f12af56a5201019fb9992be1.tar.gz mpd-2eb5ebc4ed04b2d8f12af56a5201019fb9992be1.tar.xz mpd-2eb5ebc4ed04b2d8f12af56a5201019fb9992be1.zip |
Return -1 on error, not on success.
git-svn-id: https://svn.musicpd.org/mpd/trunk@4247 09075e82-0dd4-0310-85a5-a0d7c8717e4f
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; } |