diff options
author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2005-03-11 02:21:27 +0000 |
---|---|---|
committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2005-03-11 02:21:27 +0000 |
commit | 6dc9c1096a664fe3642e774aadcb5af9f511176e (patch) | |
tree | 66a688e9854d801e594687fac6565da833952bbf /src/buffer.c | |
parent | e57f9e9964ac16b1fd09028ea533457f3029d296 (diff) | |
download | luasocket-6dc9c1096a664fe3642e774aadcb5af9f511176e.tar.gz luasocket-6dc9c1096a664fe3642e774aadcb5af9f511176e.tar.bz2 luasocket-6dc9c1096a664fe3642e774aadcb5af9f511176e.zip |
Seems to be working on windows.
Diffstat (limited to 'src/buffer.c')
-rw-r--r-- | src/buffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buffer.c b/src/buffer.c index 45cd0f2..62211d8 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
@@ -77,7 +77,7 @@ int buf_meth_send(lua_State *L, p_buf buf) { | |||
77 | int top = lua_gettop(L); | 77 | int top = lua_gettop(L); |
78 | p_tm tm = tm_markstart(buf->tm); | 78 | p_tm tm = tm_markstart(buf->tm); |
79 | int err = IO_DONE; | 79 | int err = IO_DONE; |
80 | size_t size, sent; | 80 | size_t size = 0, sent = 0; |
81 | const char *data = luaL_checklstring(L, 2, &size); | 81 | const char *data = luaL_checklstring(L, 2, &size); |
82 | long start = (long) luaL_optnumber(L, 3, 1); | 82 | long start = (long) luaL_optnumber(L, 3, 1); |
83 | long end = (long) luaL_optnumber(L, 4, -1); | 83 | long end = (long) luaL_optnumber(L, 4, -1); |