Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
0a3bbd16
Commit
0a3bbd16
authored
May 30, 2008
by
Rémi Denis-Courmont
Browse files
Revert "Simplify - CID 6"
This reverts commit
9ca4d542
which introduces a segfault.
parent
49be6b3b
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/access/smb.c
View file @
0a3bbd16
...
...
@@ -189,11 +189,11 @@ static int Open( vlc_object_t *p_this )
* smb://[[[domain;]user[:password@]]server[/share[/path[/file]]]] */
if
(
!
psz_user
)
psz_user
=
var_CreateGetString
(
p_access
,
"smb-user"
);
if
(
!*
psz_user
)
{
free
(
psz_user
);
psz_user
=
0
;
}
if
(
psz_user
&&
!*
psz_user
)
{
free
(
psz_user
);
psz_user
=
0
;
}
if
(
!
psz_pwd
)
psz_pwd
=
var_CreateGetString
(
p_access
,
"smb-pwd"
);
if
(
!*
psz_pwd
)
{
free
(
psz_pwd
);
psz_pwd
=
0
;
}
if
(
psz_pwd
&&
!*
psz_pwd
)
{
free
(
psz_pwd
);
psz_pwd
=
0
;
}
if
(
!
psz_domain
)
psz_domain
=
var_CreateGetString
(
p_access
,
"smb-domain"
);
if
(
!*
psz_domain
)
{
free
(
psz_domain
);
psz_domain
=
0
;
}
if
(
psz_domain
&&
!*
psz_domain
)
{
free
(
psz_domain
);
psz_domain
=
0
;
}
#ifdef WIN32
if
(
psz_user
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment