diff options
Diffstat (limited to 'loadlib.c')
-rw-r--r-- | loadlib.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: loadlib.c,v 1.44 2005/09/06 17:20:25 roberto Exp roberto $ | 2 | ** $Id: loadlib.c,v 1.45 2005/09/30 13:50:05 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 | ** |
@@ -640,7 +640,7 @@ LUALIB_API int luaopen_package (lua_State *L) { | |||
640 | LUA_EXECDIR "\n" LUA_IGMARK); | 640 | LUA_EXECDIR "\n" LUA_IGMARK); |
641 | lua_setfield(L, -2, "config"); | 641 | lua_setfield(L, -2, "config"); |
642 | /* set field `loaded' */ | 642 | /* set field `loaded' */ |
643 | lua_getfield(L, LUA_REGISTRYINDEX, "_LOADED"); | 643 | luaL_findtable(L, LUA_REGISTRYINDEX, "_LOADED"); |
644 | lua_setfield(L, -2, "loaded"); | 644 | lua_setfield(L, -2, "loaded"); |
645 | /* set field `preload' */ | 645 | /* set field `preload' */ |
646 | lua_newtable(L); | 646 | lua_newtable(L); |