فهرست منبع

cmd_list initialized to zero manually, just to be sure

Jan Janak 21 سال پیش
والد
کامیت
22e71358f2
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      unixsock_server.c

+ 1 - 1
unixsock_server.c

@@ -60,7 +60,7 @@ int unixsock_tx_timeout = 2000; /* Timeout for sending replies in miliseconds */
 
 
 
 
 static int rx_sock, tx_sock;
 static int rx_sock, tx_sock;
-static struct unixsock_cmd* cmd_list;
+static struct unixsock_cmd* cmd_list = 0;
 static char reply_buf[UNIXSOCK_BUF_SIZE];
 static char reply_buf[UNIXSOCK_BUF_SIZE];
 static str reply_pos;
 static str reply_pos;
 static struct sockaddr_un reply_addr;
 static struct sockaddr_un reply_addr;