]> git.sesse.net Git - vlc/commitdiff
Lua: fix interface selection.
authorRémi Duraffort <ivoire@videolan.org>
Sun, 28 Mar 2010 19:23:25 +0000 (21:23 +0200)
committerRémi Duraffort <ivoire@videolan.org>
Sun, 28 Mar 2010 19:24:19 +0000 (21:24 +0200)
modules/misc/lua/intf.c

index 103126f6aaf4dea3da5ca657857153950c6cf939..2687e54516e4386bb71c6915bd0749c86f240cbc 100644 (file)
@@ -93,7 +93,7 @@ static const char *WordInList( const char *psz_list, const char *psz_word )
             return psz_list;
         psz_list = end + 1;
     }
-    return strcmp( psz_list, psz_word ) ? psz_list : NULL;
+    return !strcmp( psz_list, psz_word ) ? psz_list : NULL;
 }
 
 static char *GetModuleName( intf_thread_t *p_intf )