diff options
Diffstat (limited to 'loadlib.c')
| -rw-r--r-- | loadlib.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -541,7 +541,7 @@ static int searcher_Lua (lua_State *L) { | |||
| 541 | const char *name = luaL_checkstring(L, 1); | 541 | const char *name = luaL_checkstring(L, 1); |
| 542 | filename = findfile(L, name, "path", LUA_LSUBSEP); | 542 | filename = findfile(L, name, "path", LUA_LSUBSEP); |
| 543 | if (filename == NULL) return 1; /* module not found in this path */ | 543 | if (filename == NULL) return 1; /* module not found in this path */ |
| 544 | return checkload(L, (luaL_loadfile(L, filename) == LUA_OK), filename); | 544 | return checkload(L, (luaL_loadfilex(L, filename, "bt") == LUA_OK), filename); |
| 545 | } | 545 | } |
| 546 | 546 | ||
| 547 | 547 | ||
