Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
476ca18b
Commit
476ca18b
authored
Jun 24, 2014
by
Matthias Keiser
Committed by
Jean-Baptiste Kempf
Jun 24, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
access/directory.c: Fix compilation error on OS X and don't leak.
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
63550af5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
modules/access/directory.c
modules/access/directory.c
+10
-4
No files found.
modules/access/directory.c
View file @
476ca18b
...
...
@@ -186,10 +186,16 @@ static int directory_open (directory *p_dir, char *psz_entry, DIR **handle)
}
#else
char
*
path
;
if
(
asprintf
(
&
path
,
"%s/%s"
,
current
->
path
,
entry
)
==
-
1
)
goto
ENTRY_EACCESS
;
if
((
*
handle
=
vlc_opendir
(
path
))
==
NULL
)
goto
ENTRY_ENOTDIR
;
if
(
asprintf
(
&
path
,
"%s/%s"
,
p_dir
->
path
,
psz_entry
)
==
-
1
)
return
ENTRY_EACCESS
;
*
handle
=
vlc_opendir
(
path
);
free
(
path
);
if
(
*
handle
==
NULL
)
{
return
ENTRY_ENOTDIR
;
}
#endif
return
ENTRY_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