diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-09-30 10:50:05 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-09-30 10:50:05 -0300 |
commit | 9e88b336b452e463945893f2f1ad4fae2352aa30 (patch) | |
tree | 61ae6eae85d74bbdb5ee5c862ad131287b5714f7 /loadlib.c | |
parent | 0fae476ed4fd899809897d72343bc5b61afff158 (diff) | |
download | lua-9e88b336b452e463945893f2f1ad4fae2352aa30.tar.gz lua-9e88b336b452e463945893f2f1ad4fae2352aa30.tar.bz2 lua-9e88b336b452e463945893f2f1ad4fae2352aa30.zip |
unused assignment
Diffstat (limited to '')
-rw-r--r-- | loadlib.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: loadlib.c,v 1.43 2005/08/31 23:17:29 roberto Exp roberto $ | 2 | ** $Id: loadlib.c,v 1.44 2005/09/06 17:20:25 roberto Exp roberto $ |
3 | ** Dynamic library loader for Lua | 3 | ** Dynamic library loader for Lua |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | ** | 5 | ** |
@@ -624,8 +624,6 @@ LUALIB_API int luaopen_package (lua_State *L) { | |||
624 | lua_setfield(L, LUA_GLOBALSINDEX, "loadlib"); | 624 | lua_setfield(L, LUA_GLOBALSINDEX, "loadlib"); |
625 | #endif | 625 | #endif |
626 | lua_pushvalue(L, -1); | 626 | lua_pushvalue(L, -1); |
627 | lua_setfield(L, LUA_REGISTRYINDEX, "_PACKAGE"); | ||
628 | lua_pushvalue(L, -1); | ||
629 | lua_replace(L, LUA_ENVIRONINDEX); | 627 | lua_replace(L, LUA_ENVIRONINDEX); |
630 | /* create `loaders' table */ | 628 | /* create `loaders' table */ |
631 | lua_newtable(L); | 629 | lua_newtable(L); |