Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
67cfc814
Commit
67cfc814
authored
Feb 27, 2010
by
Antoine Cellerier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix NULL pointer dereferencing due to
c58a5af7
.
parent
1f01a7c6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
modules/misc/lua/libs/misc.c
modules/misc/lua/libs/misc.c
+1
-2
No files found.
modules/misc/lua/libs/misc.c
View file @
67cfc814
...
@@ -162,14 +162,13 @@ static int vlclua_datadir_list( lua_State *L )
...
@@ -162,14 +162,13 @@ static int vlclua_datadir_list( lua_State *L )
{
{
const
char
*
psz_dirname
=
luaL_checkstring
(
L
,
1
);
const
char
*
psz_dirname
=
luaL_checkstring
(
L
,
1
);
char
**
ppsz_dir_list
=
NULL
;
char
**
ppsz_dir_list
=
NULL
;
char
**
ppsz_dir
=
ppsz_dir_list
;
int
i
=
1
;
int
i
=
1
;
if
(
vlclua_dir_list
(
vlclua_get_this
(
L
),
psz_dirname
,
&
ppsz_dir_list
)
if
(
vlclua_dir_list
(
vlclua_get_this
(
L
),
psz_dirname
,
&
ppsz_dir_list
)
!=
VLC_SUCCESS
)
!=
VLC_SUCCESS
)
return
0
;
return
0
;
lua_newtable
(
L
);
lua_newtable
(
L
);
for
(
;
*
ppsz_dir
;
ppsz_dir
++
)
for
(
char
**
ppsz_dir
=
ppsz_dir_list
;
*
ppsz_dir
;
ppsz_dir
++
)
{
{
lua_pushstring
(
L
,
*
ppsz_dir
);
lua_pushstring
(
L
,
*
ppsz_dir
);
lua_rawseti
(
L
,
-
2
,
i
);
lua_rawseti
(
L
,
-
2
,
i
);
...
...
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