[vlc-commits] commit: Use pushliteral instead of pushstring where	possible. Saves a strlen call. (Antoine Cellerier )
    git version control 
    git at videolan.org
       
    Tue Mar  2 12:23:46 CET 2010
    
    
  
vlc | branch: master | Antoine Cellerier <dionoea at videolan.org> | Fri Feb 26 12:14:26 2010 +0100| [d69b5e609845a113328dc724e241d5e900091c9f] | committer: Antoine Cellerier 
Use pushliteral instead of pushstring where possible. Saves a strlen call.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d69b5e609845a113328dc724e241d5e900091c9f
---
 modules/misc/lua/libs/misc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/misc/lua/libs/misc.c b/modules/misc/lua/libs/misc.c
index 10d1424..ca1e69c 100644
--- a/modules/misc/lua/libs/misc.c
+++ b/modules/misc/lua/libs/misc.c
@@ -99,7 +99,7 @@ static int vlclua_copyright( lua_State *L )
  *****************************************************************************/
 static int vlclua_license( lua_State *L )
 {
-    lua_pushstring( L, LICENSE_MSG );
+    lua_pushliteral( L, LICENSE_MSG );
     return 1;
 }
 
    
    
More information about the vlc-commits
mailing list