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
b0966945
Commit
b0966945
authored
Nov 01, 2006
by
Rafaël Carré
Browse files
Removes useless sanity checks
parent
914f2018
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/access/file.c
View file @
b0966945
...
...
@@ -508,7 +508,7 @@ static int Control( access_t *p_access, int i_query, va_list args )
static
char
*
expand_path
(
const
access_t
*
p_access
,
const
char
*
path
)
{
if
(
(
strlen
(
path
)
>=
2
)
&&
(
strncmp
(
path
,
"~/"
,
2
)
==
0
)
)
if
(
strncmp
(
path
,
"~/"
,
2
)
==
0
)
{
char
*
res
;
...
...
@@ -519,8 +519,7 @@ static char *expand_path (const access_t *p_access, const char *path)
}
#if defined(WIN32)
if
(
(
strlen
(
p_access
->
psz_access
)
>=
4
)
&&
!
strcasecmp
(
p_access
->
psz_access
,
"file"
)
if
(
!
strcasecmp
(
p_access
->
psz_access
,
"file"
)
&&
(
'/'
==
path
[
0
])
&&
path
[
1
]
&&
(
':'
==
path
[
2
])
&&
(
'/'
==
path
[
3
]))
// Explorer can open path such as file:/C:/ or file:///C:/
// hence remove leading / if found
...
...
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