[vlc-devel] commit: Fix module_exists ( Rémi Denis-Courmont )

git version control git at videolan.org
Mon Sep 22 22:49:53 CEST 2008


vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Mon Sep 22 23:48:08 2008 +0300| [4a9821da9422eecdb67c4db1eb1a746ba14934b5] | committer: Rémi Denis-Courmont 

Fix module_exists

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

 src/modules/modules.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/modules/modules.c b/src/modules/modules.c
index 40ac170..0123318 100644
--- a/src/modules/modules.c
+++ b/src/modules/modules.c
@@ -697,7 +697,7 @@ bool __module_exists( vlc_object_t *p_this, const char * psz_name )
     module_t *p_module = __module_find( p_this, psz_name );
     if( p_module )
         module_release (p_module);
-    return true != NULL;
+    return p_module != NULL;
 }
 
 /**




More information about the vlc-devel mailing list