X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fsocket.cpp;h=4c03c933dc98e0a634f9fa79cd4043337f816fbf;hb=b7c16f1ebc0809bb9f85573a37c6bb11f6854aca;hp=e240d1208825a3ae0a9d5df6a98ee08f84fb3ab3;hpb=5c731e5c99cc4a60d3918260acb8d83a35077e3e;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/socket.cpp b/src/socket.cpp index e240d1208..4c03c933d 100644 --- a/src/socket.cpp +++ b/src/socket.cpp @@ -261,9 +261,9 @@ void InspSocket::FlushWriteBuffer() { if ((this->fd > -1) && (this->state == I_CONNECTED)) { - int result = 0; + int result = 0, v = 0; const char* n = Buffer.c_str(); - int v = Buffer.length(); + v = Buffer.length(); if (v > 0) { result = write(this->fd,n,v);