moonbridge

diff moonbridge.c @ 100:df1ab25c6513

Bugfix in C function moonbr_io_closehandle
author jbe
date Wed Apr 08 05:11:58 2015 +0200 (2015-04-08)
parents de3982f17d05
children baa30bfec659
line diff
     1.1 --- a/moonbridge.c	Wed Apr 08 04:22:03 2015 +0200
     1.2 +++ b/moonbridge.c	Wed Apr 08 05:11:58 2015 +0200
     1.3 @@ -897,7 +897,7 @@
     1.4        fprintf(stderr, "Error in \"connect\" function: %s\n", lua_tostring(L, -1));
     1.5        exit(1);
     1.6      }
     1.7 -    if (fd) moonbr_io_closehandle(L, -2, -1);  /* attemt clean close */
     1.8 +    if (fd) moonbr_io_closehandle(L, -2, 0);  /* attemt clean close */
     1.9      if (lua_type(L, -1) != LUA_TBOOLEAN || !lua_toboolean(L, -1)) break;
    1.10  #ifdef MOONBR_LUA_PANIC_BUG_WORKAROUND
    1.11      lua_settop(L, 2);

Impressum / About Us