aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lfs.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/lfs.c b/src/lfs.c
index 68040d4..df7ec2c 100644
--- a/src/lfs.c
+++ b/src/lfs.c
@@ -360,11 +360,7 @@ static int lfs_g_setmode (lua_State *L, FILE *f, int arg) {
360 lua_pushnil(L); 360 lua_pushnil(L);
361 return 2; 361 return 2;
362 } else { 362 } else {
363 int en = errno; 363 return pusherror(L, NULL);
364 lua_pushnil(L);
365 lua_pushfstring(L, "%s", strerror(en));
366 lua_pushinteger(L, en);
367 return 3;
368 } 364 }
369} 365}
370 366