1
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:
Rémi Denis-Courmont 2010-01-23 19:19:19 +02:00
parent 1fa88f66c1
commit 80b17e25cc

View File

@ -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();
}