Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
de3efb74
Commit
de3efb74
authored
Apr 06, 2007
by
Rafaël Carré
Browse files
adds sanity check to module_Exists()
parent
46cd2cb9
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/misc/modules.c
View file @
de3efb74
...
...
@@ -767,12 +767,13 @@ vlc_bool_t __module_Exists( vlc_object_t *p_this, const char * psz_name )
{
vlc_list_t
*
p_list
;
int
i
;
char
*
psz_module_name
;
p_list
=
vlc_list_find
(
p_this
,
VLC_OBJECT_MODULE
,
FIND_ANYWHERE
);
for
(
i
=
0
;
i
<
p_list
->
i_count
;
i
++
)
{
if
(
!
strcmp
(
((
module_t
*
)
p_list
->
p_values
[
i
].
p_object
)
->
psz_shortname
,
psz_name
)
)
psz_module_name
=
((
module_t
*
)
p_list
->
p_values
[
i
].
p_object
)
->
psz_shortname
;
if
(
psz_module_name
&&
!
strcmp
(
psz_module_name
,
psz_name
)
)
{
/* We can release the list, and return yes */
vlc_list_release
(
p_list
);
return
VLC_TRUE
;
...
...
Write
Preview
Supports
Markdown
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