Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Steve Lhomme
VLC
Commits
7f74ae29
Commit
7f74ae29
authored
Nov 16, 2016
by
Pierre Ynard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
luasd: handle memory error on probing
parent
ec80ab80
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
modules/lua/vlc.c
modules/lua/vlc.c
+4
-2
No files found.
modules/lua/vlc.c
View file @
7f74ae29
...
...
@@ -621,10 +621,12 @@ int vlclua_playlist_add_internal( vlc_object_t *p_this, lua_State *L,
static
int
vlc_sd_probe_Open
(
vlc_object_t
*
obj
)
{
vlc_dictionary_t
name_d
;
vlc_dictionary_init
(
&
name_d
,
32
);
char
**
ppsz_dir_list
;
vlclua_dir_list
(
"sd"
,
&
ppsz_dir_list
);
if
(
vlclua_dir_list
(
"sd"
,
&
ppsz_dir_list
)
)
return
VLC_ENOMEM
;
vlc_dictionary_init
(
&
name_d
,
32
);
for
(
char
**
ppsz_dir
=
ppsz_dir_list
;
*
ppsz_dir
;
ppsz_dir
++
)
{
char
**
ppsz_filelist
;
...
...
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