[vlc-commits] SFTP: fix return variable type

Jean-Baptiste Kempf git at videolan.org
Sun Jan 3 11:04:48 CET 2016


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sun Jan  3 10:55:22 2016 +0100| [b356201f0ae4b8b103c18a97139b735e12b31e59] | committer: Jean-Baptiste Kempf

SFTP: fix return variable type

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b356201f0ae4b8b103c18a97139b735e12b31e59
---

 modules/access/sftp.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/access/sftp.c b/modules/access/sftp.c
index 6e0b687..f6eddda 100644
--- a/modules/access/sftp.c
+++ b/modules/access/sftp.c
@@ -356,7 +356,7 @@ static ssize_t Read( access_t *p_access, uint8_t *buf, size_t len )
     access_sys_t *p_sys = p_access->p_sys;
 
     if( p_access->info.b_eof )
-        return NULL;
+        return 0;
 
     ssize_t val = libssh2_sftp_read(  p_sys->file, (char *)buf, len );
     if( val < 0 )



More information about the vlc-commits mailing list