summaryrefslogtreecommitdiff
path: root/src/client/client.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/client.c')
-rw-r--r--src/client/client.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/client/client.c b/src/client/client.c
index 66c5700..399324a 100644
--- a/src/client/client.c
+++ b/src/client/client.c
@@ -57,7 +57,6 @@ static int traffic_down;
static int traffic_up;
#endif
-
typedef struct proto_cmd_client_struct
{
char *name;
@@ -229,6 +228,8 @@ void sendServer(char *msg)
assert( msg != NULL );
+ ret = -1;
+
#ifndef PUBLIC_SERVER
if( isParamFlag("--send") )
{
@@ -269,7 +270,8 @@ static int eventServerSelect()
int ret;
memset(buffer, 0, STR_PROTO_SIZE);
-
+ ret = -1;
+
#ifdef SUPPORT_UDP
if( sock_server_udp != NULL )
{
@@ -382,6 +384,9 @@ static void selectClientSocket()
int sock;
bool_t isNext;
+ max_fd = 0;
+ sock = 0;
+
#ifdef SUPPORT_UDP
if( sock_server_udp != NULL )
{