[vlc-commits] modules: fix flawed logic in module_config_get()

Rémi Denis-Courmont git at videolan.org
Thu Oct 27 21:49:16 CEST 2016


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Oct 27 22:44:48 2016 +0300| [8d8ec98e9f865da5303ec1b990f3ec1f63568d40] | committer: Rémi Denis-Courmont

modules: fix flawed logic in module_config_get()

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8d8ec98e9f865da5303ec1b990f3ec1f63568d40
---

 src/modules/modules.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/modules/modules.c b/src/modules/modules.c
index a62ef82..19a3af0 100644
--- a/src/modules/modules.c
+++ b/src/modules/modules.c
@@ -422,7 +422,7 @@ module_config_t *module_config_get( const module_t *module, unsigned *restrict p
 {
     const vlc_plugin_t *plugin = module->plugin;
 
-    if (plugin->module != NULL)
+    if (plugin->module != module)
     {   /* For backward compatibility, pretend non-first modules have no
          * configuration items. */
         *psize = 0;



More information about the vlc-commits mailing list