From 82a523e27ca7d9eb9a12eda4202252136a229e15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=91=E9=A3=8E?= Date: Wed, 15 Aug 2012 12:58:14 +0800 Subject: [PATCH] minor fix --- connection/lua-socket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/connection/lua-socket.c b/connection/lua-socket.c index 27592e83..c8013d33 100644 --- a/connection/lua-socket.c +++ b/connection/lua-socket.c @@ -48,7 +48,7 @@ static int _write(lua_State *L) { int fd = luaL_checkinteger(L,1); int type = lua_type(L,2); - const char * buffer; + const char * buffer = NULL; size_t sz; if (type == LUA_TSTRING) { buffer = lua_tolstring(L,2,&sz);