X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Faccess%2Fsmb.c;h=4d06b0b3dc1fdb6046c5e7ce645563bf5f3f0c86;hb=a695dfb6c3efa09be59778a8de46f5467ae92861;hp=abe67a7b237aa501c3a87bc0b4dea12ecf139863;hpb=7e765ed1396fb3e279c5435d35044b11d4b9d009;p=vlc diff --git a/modules/access/smb.c b/modules/access/smb.c index abe67a7b23..4d06b0b3dc 100644 --- a/modules/access/smb.c +++ b/modules/access/smb.c @@ -184,11 +184,11 @@ static int Open( vlc_object_t *p_this ) /* Build an SMB URI * smb://[[[domain;]user[:password@]]server[/share[/path[/file]]]] */ - if( !psz_user ) psz_user = var_CreateGetString( p_access, "smb-user" ); + if( !psz_user ) psz_user = var_InheritString( p_access, "smb-user" ); if( psz_user && !*psz_user ) { free( psz_user ); psz_user = NULL; } - if( !psz_pwd ) psz_pwd = var_CreateGetString( p_access, "smb-pwd" ); + if( !psz_pwd ) psz_pwd = var_InheritString( p_access, "smb-pwd" ); if( psz_pwd && !*psz_pwd ) { free( psz_pwd ); psz_pwd = NULL; } - if( !psz_domain ) psz_domain = var_CreateGetString( p_access, "smb-domain" ); + if( !psz_domain ) psz_domain = var_InheritString( p_access, "smb-domain" ); if( psz_domain && !*psz_domain ) { free( psz_domain ); psz_domain = NULL; } #ifdef WIN32