mirror of
https://code.videolan.org/videolan/vlc
synced 2024-07-25 09:41:30 +02:00
Fix use of --data-path
This commit is contained in:
parent
1fa88f66c1
commit
80b17e25cc
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user