Commit 37af1e42 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Revert "modules: initialize return pointer to NULL"

This reverts commit 866faad6.

    module_t **list, *module;

    list = module_list_get (NULL);
    if (!list)
        return NULL;

    for (size_t i = 0; (module = list[i]) != NULL; i++)
                        ^^^^^^^^
I think this needs no more comment.
parent a744c7cf
...@@ -683,7 +683,7 @@ void __module_unneed( vlc_object_t * p_this, module_t * p_module ) ...@@ -683,7 +683,7 @@ void __module_unneed( vlc_object_t * p_this, module_t * p_module )
*/ */
module_t *module_find( const char * psz_name ) module_t *module_find( const char * psz_name )
{ {
module_t **list, *module = NULL; module_t **list, *module;
list = module_list_get (NULL); list = module_list_get (NULL);
if (!list) if (!list)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment