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
a6e1074b
Commit
a6e1074b
authored
May 07, 2014
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
keys: remove zero-length array
parent
a5a33334
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/config/keys.c
src/config/keys.c
+2
-2
No files found.
src/config/keys.c
View file @
a6e1074b
...
...
@@ -396,7 +396,7 @@ struct vlc_actions
{
void
*
map
;
/* Key map */
void
*
global_map
;
/* Grabbed/global key map */
struct
hotkey
keys
[
0
];
struct
hotkey
keys
[
1
];
};
static
int
vlc_key_to_action
(
vlc_object_t
*
obj
,
const
char
*
varname
,
...
...
@@ -474,7 +474,7 @@ struct vlc_actions *vlc_InitActions (libvlc_int_t *libvlc)
{
vlc_object_t
*
obj
=
VLC_OBJECT
(
libvlc
);
struct
hotkey
*
keys
;
struct
vlc_actions
*
as
=
malloc
(
sizeof
(
*
as
)
+
(
ACTIONS_COUNT
+
1
)
*
sizeof
(
*
keys
));
struct
vlc_actions
*
as
=
malloc
(
sizeof
(
*
as
)
+
ACTIONS_COUNT
*
sizeof
(
*
keys
));
if
(
unlikely
(
as
==
NULL
))
return
NULL
;
...
...
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