mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-25 04:33:05 +00:00
minor fix
This commit is contained in:
@@ -48,7 +48,7 @@ static int
|
|||||||
_write(lua_State *L) {
|
_write(lua_State *L) {
|
||||||
int fd = luaL_checkinteger(L,1);
|
int fd = luaL_checkinteger(L,1);
|
||||||
int type = lua_type(L,2);
|
int type = lua_type(L,2);
|
||||||
const char * buffer;
|
const char * buffer = NULL;
|
||||||
size_t sz;
|
size_t sz;
|
||||||
if (type == LUA_TSTRING) {
|
if (type == LUA_TSTRING) {
|
||||||
buffer = lua_tolstring(L,2,&sz);
|
buffer = lua_tolstring(L,2,&sz);
|
||||||
|
|||||||
Reference in New Issue
Block a user