Commit 866faad6 authored by Jean-Paul Saman's avatar Jean-Paul Saman

modules: initialize return pointer to NULL

If module_find() does not find the requested module it would return an uninitialized pointer. This made VLC webplugin crash under MacOS X. Thus make sure to initialize it properly to NULL.
parent 63cedb8d
...@@ -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; module_t **list, *module = NULL;
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