[vlc-commits] ftp: use vlc_UrlParseFixup

Thomas Guillem git at videolan.org
Wed Dec 6 10:13:28 CET 2017


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Dec  5 09:51:00 2017 +0100| [d4055e377b91a173c55b3f7406724e62bb49d146] | committer: Thomas Guillem

ftp: use vlc_UrlParseFixup

Refs #18991

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

 modules/access/ftp.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/access/ftp.c b/modules/access/ftp.c
index 79387772a3..fd486831cb 100644
--- a/modules/access/ftp.c
+++ b/modules/access/ftp.c
@@ -443,7 +443,7 @@ static int Login( vlc_object_t *p_access, access_sys_t *p_sys )
 
     vlc_url_t url;
     vlc_credential credential;
-    vlc_UrlParse( &url, ((stream_t *)p_access)->psz_url );
+    vlc_UrlParseFixup( &url, ((stream_t *)p_access)->psz_url );
     vlc_credential_init( &credential, &url );
     bool b_logged = false;
 
@@ -645,7 +645,7 @@ static int parseURL( vlc_url_t *url, const char *path, enum tls_mode_e mode )
     while( *path == '/' )
         path++;
 
-    vlc_UrlParse( url, path );
+    vlc_UrlParseFixup( url, path );
 
     if( url->psz_host == NULL || *url->psz_host == '\0' )
         return VLC_EGENERIC;



More information about the vlc-commits mailing list