Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
123e190e
Commit
123e190e
authored
Mar 28, 2017
by
Hugo Beauzée-Luyssen
Browse files
lua: PushCommand: Check for allocation failure
parent
ce741080
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/lua/extension_thread.c
View file @
123e190e
...
...
@@ -230,6 +230,8 @@ int PushCommand__( extension_t *p_ext, bool b_unique, command_type_e i_command,
{
/* Create command */
struct
command_t
*
cmd
=
calloc
(
1
,
sizeof
(
struct
command_t
)
);
if
(
unlikely
(
cmd
==
NULL
)
)
return
VLC_ENOMEM
;
cmd
->
i_command
=
i_command
;
switch
(
i_command
)
{
...
...
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