]> git.sesse.net Git - vlc/blobdiff - modules/control/http/util.c
Remove libvlc->psz_homedir and use config_GetHomeDir() instead
[vlc] / modules / control / http / util.c
index 97767bdc0001f40f3dd807ad9e767fefe5108f90..d9699ccde25fe2d11ae8b2ee3c0431c1efa60706 100644 (file)
@@ -903,8 +903,7 @@ char *RealPath( intf_thread_t *p_intf, const char *psz_src )
     if( psz_dir[0] == '~' )
     {
         char *dir;
-        /* This is incomplete : we should also support the ~cmassiot/ syntax. */
-        asprintf( &dir, "%s%s", p_intf->p_libvlc->psz_homedir, psz_dir + 1 );
+        asprintf( &dir, "%s%s", config_GetHomeDir(), psz_dir + 1 );
         free( psz_dir );
         psz_dir = dir;
     }