]> git.sesse.net Git - vlc/commitdiff
addons: fsstorage: strip scheme from catalog path
authorFrancois Cartegnie <fcvlcdev@free.fr>
Wed, 12 Feb 2014 01:17:14 +0000 (02:17 +0100)
committerFrancois Cartegnie <fcvlcdev@free.fr>
Wed, 12 Feb 2014 01:36:30 +0000 (02:36 +0100)
modules/misc/addons/fsstorage.c

index 558e92dc7e47980f132b3b4530ab11f6c5cc690a..a207a1eba90924b63acab42c138f6c667390ab7c 100644 (file)
@@ -650,8 +650,9 @@ static int LoadCatalog( addons_finder_t *p_finder )
     char *psz_filename = NULL;
     int i_filetype = -1;
 
+    const char *psz_statpath = psz_path + 7; // + scheme
     struct stat stat_;
-    if ( vlc_stat( psz_path, &stat_ ) )
+    if ( vlc_stat( psz_statpath, &stat_ ) )
     {
         free( psz_path );
         return VLC_EGENERIC;