summaryrefslogtreecommitdiff
path: root/src/socket.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/socket.cpp')
-rw-r--r--src/socket.cpp4
1 files changed, 2 insertions, 2 deletions
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);