mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-01-21 13:02:55 +00:00
BUG/MINOR: lua: Useless copy
A value is copied two time in teh stack, but only one is usefull. The second copy leaves unused in the stack and take some room for noting. This path removes the second copy. Must be backported in 1.6
This commit is contained in:
parent
9f72555b65
commit
9d5fb6d6a0
@ -7002,7 +7002,6 @@ void hlua_init(void)
|
||||
|
||||
/* Register previous table in the registry with reference and named entry. */
|
||||
lua_pushvalue(gL.T, -1); /* Copy the -1 entry and push it on the stack. */
|
||||
lua_pushvalue(gL.T, -1); /* Copy the -1 entry and push it on the stack. */
|
||||
lua_setfield(gL.T, LUA_REGISTRYINDEX, CLASS_SOCKET); /* register class socket. */
|
||||
class_socket_ref = luaL_ref(gL.T, LUA_REGISTRYINDEX); /* reference class socket. */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user