Browse code

Merge pull request #1590 from surendratiwari3/app_lua_child_fix

app_lua : fixing bug for setting set SR lib version for lua 52

Daniel-Constantin Mierla authored on 12/07/2018 13:47:09 • GitHub committed on 12/07/2018 13:47:09
Showing 1 changed files
... ...
@@ -297,8 +297,8 @@ int lua_sr_init_child(void)
297 297
 
298 298
 		/* set SR lib version */
299 299
 #if LUA_VERSION_NUM >= 502
300
-		lua_pushstring(_sr_L_env.L, SRVERSION);
301
-		lua_setglobal(_sr_L_env.L, "SRVERSION");
300
+		lua_pushstring(_sr_L_env.LL, SRVERSION);
301
+		lua_setglobal(_sr_L_env.LL, "SRVERSION");
302 302
 #else
303 303
 		lua_pushstring(_sr_L_env.LL, "SRVERSION");
304 304
 		lua_pushstring(_sr_L_env.LL, SRVERSION);