]> git.sesse.net Git - vlc/commitdiff
Use pushliteral instead of pushstring where possible. Saves a strlen call.
authorAntoine Cellerier <dionoea@videolan.org>
Fri, 26 Feb 2010 11:14:26 +0000 (12:14 +0100)
committerAntoine Cellerier <dionoea@videolan.org>
Tue, 2 Mar 2010 11:20:43 +0000 (12:20 +0100)
modules/misc/lua/libs/misc.c

index 10d1424a1a8f3889985726d68f4350af24bc94ea..ca1e69ced821326b86b3e359e16b62a66cd5877d 100644 (file)
@@ -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;
 }