Commit 80b17e25 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Fix use of --data-path

parent 1fa88f66
......@@ -37,10 +37,7 @@
*/
char *__config_GetDataDir( vlc_object_t *p_obj )
{
char *psz_path = config_GetPsz( p_obj, "data-path" );
if( psz_path && *psz_path )
return psz_path;
free( psz_path );
return config_GetDataDirDefault();
char *psz_path = var_InheritString( p_obj, "data-path" );
return psz_path ? psz_path : config_GetDataDirDefault();
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment