diff options
author | Thibaut Mattern <tmattern@users.sourceforge.net> | 2006-03-18 09:25:02 +0000 |
---|---|---|
committer | Thibaut Mattern <tmattern@users.sourceforge.net> | 2006-03-18 09:25:02 +0000 |
commit | 4225ea18f8fdbae129780717e6d57837cb95d6fb (patch) | |
tree | e041cae5e9db41abb4fd4ee5006b8f8a16f234e2 | |
parent | e71857edecf0aa67a34ca262f8c015ff0cdc8a47 (diff) | |
download | xine-lib-4225ea18f8fdbae129780717e6d57837cb95d6fb.tar.gz xine-lib-4225ea18f8fdbae129780717e6d57837cb95d6fb.tar.bz2 |
[coverity]
CID: 10
Checker: DEADCODE (help)
File: xine-lib/src/input/input_smb.c
Function: smb_plugin_read
Description: After this line, the value of "n" is at least 1
CVS patchset: 7937
CVS date: 2006/03/18 09:25:02
-rw-r--r-- | src/input/input_smb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/input/input_smb.c b/src/input/input_smb.c index 83833a8cd..42bd7faf4 100644 --- a/src/input/input_smb.c +++ b/src/input/input_smb.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: input_smb.c,v 1.8 2006/02/14 18:42:13 dsalt Exp $ + * $Id: input_smb.c,v 1.9 2006/03/18 09:25:02 tmattern Exp $ */ @@ -76,7 +76,7 @@ smb_plugin_read (input_plugin_t *this_gen, char *buf, off_t len) while (num_bytes < len) { n = smbc_read( this->fd, buf+num_bytes, len-num_bytes ); - if (n<1) return -1; + if (n<0) return -1; if (!n) return num_bytes; num_bytes += n; } |