diff options
Diffstat (limited to 'src/lib_package.c')
-rw-r--r-- | src/lib_package.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib_package.c b/src/lib_package.c index 48d4b140..71e0826b 100644 --- a/src/lib_package.c +++ b/src/lib_package.c | |||
@@ -217,7 +217,7 @@ static const char *searchpath (lua_State *L, const char *name, | |||
217 | lua_pushliteral(L, ""); /* error accumulator */ | 217 | lua_pushliteral(L, ""); /* error accumulator */ |
218 | while ((path = pushnexttemplate(L, path)) != NULL) { | 218 | while ((path = pushnexttemplate(L, path)) != NULL) { |
219 | const char *filename = luaL_gsub(L, lua_tostring(L, -1), | 219 | const char *filename = luaL_gsub(L, lua_tostring(L, -1), |
220 | LUA_PATH_MARK, name); | 220 | LUA_PATH_MARK, name); |
221 | lua_remove(L, -2); /* remove path template */ | 221 | lua_remove(L, -2); /* remove path template */ |
222 | if (readable(filename)) /* does file exist and is readable? */ | 222 | if (readable(filename)) /* does file exist and is readable? */ |
223 | return filename; /* return that file name */ | 223 | return filename; /* return that file name */ |