diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/lfs.c | 3 |
1 files changed, 1 insertions, 2 deletions
| @@ -354,11 +354,10 @@ static int lfs_g_setmode (lua_State *L, FILE *f, int arg) { | |||
| 354 | for (i = 0; modenames[i] != NULL; i++) { | 354 | for (i = 0; modenames[i] != NULL; i++) { |
| 355 | if (mode[i] == res) { | 355 | if (mode[i] == res) { |
| 356 | lua_pushstring(L, modenames[i]); | 356 | lua_pushstring(L, modenames[i]); |
| 357 | goto exit; | 357 | return 2; |
| 358 | } | 358 | } |
| 359 | } | 359 | } |
| 360 | lua_pushnil(L); | 360 | lua_pushnil(L); |
| 361 | exit: | ||
| 362 | return 2; | 361 | return 2; |
| 363 | } else { | 362 | } else { |
| 364 | int en = errno; | 363 | int en = errno; |
