diff options
author | Hisham <hisham@gobolinux.org> | 2016-06-21 02:40:01 +0300 |
---|---|---|
committer | Hisham <hisham@gobolinux.org> | 2016-06-21 02:40:01 +0300 |
commit | a1015fe3952e1216e3df16307189586046f83131 (patch) | |
tree | ba2e9a672f474cbe697d073061591eacc0650304 | |
parent | 2e068eb438238cde06b87ad44bf21af2852d05b5 (diff) |
Lua 5.1 compatibilitysymlink_target
-rw-r--r-- | src/lfs.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -866,7 +866,8 @@ static int push_link_target(lua_State *L) { if (lua_type(L, -1) == LUA_TTABLE) { /* when symlinkattributes collects the whole table, get the size from it */ - int size_type = lua_getfield(L, -1, "size"); + lua_getfield(L, -1, "size"); + int size_type = lua_type(L, -1); if (size_type != LUA_TNUMBER) { lua_pop(L, 1); errno = EINVAL; |