aboutsummaryrefslogtreecommitdiff
path: root/loadlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'loadlib.c')
-rw-r--r--loadlib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/loadlib.c b/loadlib.c
index 8d2e68e2..ef09c9a5 100644
--- a/loadlib.c
+++ b/loadlib.c
@@ -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