aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lfs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lfs.c b/src/lfs.c
index 93c1419..8154a46 100644
--- a/src/lfs.c
+++ b/src/lfs.c
@@ -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 }