[vlc-commits] FTP: fix root folder parsing

Jean-Baptiste Kempf git at videolan.org
Thu Jul 28 13:59:36 CEST 2016


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu Jul 28 13:44:20 2016 +0200| [aac16bcbf770fcbbed47e06cca1ecaf369693dcd] | committer: Jean-Baptiste Kempf

FTP: fix root folder parsing

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

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

diff --git a/modules/access/ftp.c b/modules/access/ftp.c
index 36e4998..4ff4e76 100644
--- a/modules/access/ftp.c
+++ b/modules/access/ftp.c
@@ -663,7 +663,7 @@ static int InOpen( vlc_object_t *p_this )
         goto exit_error;
 
     /* get size */
-    if( p_sys->url.psz_path == NULL )
+    if( p_sys->url.psz_path == NULL || !*p_sys->url.psz_path )
         b_directory = true;
     else
     if( ftp_SendCommand( p_this, p_sys, "SIZE %s", p_sys->url.psz_path ) < 0 )



More information about the vlc-commits mailing list