diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lfs.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -827,7 +827,8 @@ static int _file_info_ (lua_State *L, int (*st)(const char*, STAT_STRUCT*)) { | |||
827 | /* member not found */ | 827 | /* member not found */ |
828 | return luaL_error(L, "invalid attribute name '%s'", member); | 828 | return luaL_error(L, "invalid attribute name '%s'", member); |
829 | } | 829 | } |
830 | /* creates a table if none is given */ | 830 | /* creates a table if none is given, removes extra arguments */ |
831 | lua_settop(L, 2); | ||
831 | if (!lua_istable (L, 2)) { | 832 | if (!lua_istable (L, 2)) { |
832 | lua_newtable (L); | 833 | lua_newtable (L); |
833 | } | 834 | } |