Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
e2da5c14
Commit
e2da5c14
authored
Aug 20, 2014
by
Rémi Denis-Courmont
Browse files
dbus: avoid invalid zero-size array
parent
af9c01e9
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/control/dbus/dbus.c
View file @
e2da5c14
...
...
@@ -833,7 +833,7 @@ static void *Run( void *data )
/* Get the list of watches to process */
i_watches
=
vlc_array_count
(
p_sys
->
p_watches
);
DBusWatch
*
p_watches
[
i_watches
];
DBusWatch
*
p_watches
[
i_watches
?
i_watches
:
1
];
for
(
int
i
=
0
;
i
<
i_watches
;
i
++
)
{
p_watches
[
i
]
=
vlc_array_item_at_index
(
p_sys
->
p_watches
,
i
);
...
...
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