]> git.sesse.net Git - vlc/blobdiff - modules/misc/lua/intf.c
Lua: fix interface selection.
[vlc] / 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 )