Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
04aae4db
Commit
04aae4db
authored
May 20, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
No need to do stat() before opendir()!
parent
cca9e206
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
7 deletions
+1
-7
modules/misc/lua/net.c
modules/misc/lua/net.c
+1
-7
No files found.
modules/misc/lua/net.c
View file @
04aae4db
...
@@ -283,13 +283,7 @@ int vlclua_opendir( lua_State *L )
...
@@ -283,13 +283,7 @@ int vlclua_opendir( lua_State *L )
const
char
*
psz_dir
=
luaL_checkstring
(
L
,
1
);
const
char
*
psz_dir
=
luaL_checkstring
(
L
,
1
);
DIR
*
p_dir
;
DIR
*
p_dir
;
int
i
=
0
;
int
i
=
0
;
#ifdef HAVE_SYS_STAT_H
struct
stat
s
;
if
(
utf8_stat
(
psz_dir
,
&
s
)
==
-
1
)
return
luaL_error
(
L
,
"Error while trying to stat `%s'."
,
psz_dir
);
if
(
!
S_ISDIR
(
s
.
st_mode
)
)
return
luaL_error
(
L
,
"`%s' is not a directory."
,
psz_dir
);
#endif
if
(
(
p_dir
=
utf8_opendir
(
psz_dir
)
)
==
NULL
)
if
(
(
p_dir
=
utf8_opendir
(
psz_dir
)
)
==
NULL
)
return
luaL_error
(
L
,
"cannot open directory `%s'."
,
psz_dir
);
return
luaL_error
(
L
,
"cannot open directory `%s'."
,
psz_dir
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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