[vlc-commits] lua: remove tautology

Pierre Ynard git at videolan.org
Tue Oct 25 01:13:37 CEST 2011


vlc/vlc-1.1 | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Tue Oct 25 01:11:39 2011 +0200| [58a5a56e4becca62fed8fb211da229609e73b060] | committer: Pierre Ynard

lua: remove tautology

> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=58a5a56e4becca62fed8fb211da229609e73b060
---

 modules/misc/lua/libs/variables.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/misc/lua/libs/variables.c b/modules/misc/lua/libs/variables.c
index 4373f37..8f2dc27 100644
--- a/modules/misc/lua/libs/variables.c
+++ b/modules/misc/lua/libs/variables.c
@@ -259,7 +259,7 @@ int __vlclua_var_toggle_or_set( lua_State *L, vlc_object_t *p_obj,
         b_bool = !var_GetBool( p_obj, psz_name );
     else /* lua_gettop( L ) == 1 */
     {
-        b_bool = luaL_checkboolean( L, -1 )?true:false;
+        b_bool = luaL_checkboolean( L, -1 );
         lua_pop( L, 1 );
     }
 



More information about the vlc-commits mailing list