Skip to content

Commit

Permalink
app_lua: fixing bug for setting global table lua
Browse files Browse the repository at this point in the history
(cherry picked from commit ea390d6)
  • Loading branch information
surendratiwari3 authored and miconda committed Jul 13, 2018
1 parent 40b58e2 commit 26d2c50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/app_lua/app_lua_api.c
Expand Up @@ -297,8 +297,8 @@ int lua_sr_init_child(void)

/* set SR lib version */
#if LUA_VERSION_NUM >= 502
lua_pushstring(_sr_L_env.L, SRVERSION);
lua_setglobal(_sr_L_env.L, "SRVERSION");
lua_pushstring(_sr_L_env.LL, SRVERSION);
lua_setglobal(_sr_L_env.LL, "SRVERSION");
#else
lua_pushstring(_sr_L_env.LL, "SRVERSION");
lua_pushstring(_sr_L_env.LL, SRVERSION);
Expand Down

0 comments on commit 26d2c50

Please sign in to comment.