浏览代码

rtl_tcp: fix warning

Signed-off-by: Steve Markgraf <steve@steve-m.de>
Steve Markgraf 11 年之前
父节点
当前提交
c25f9cbc38
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/rtl_tcp.c

+ 1 - 1
src/rtl_tcp.c

@@ -276,7 +276,7 @@ struct command{
 #endif
 #endif
 static void *command_worker(void *arg)
 static void *command_worker(void *arg)
 {
 {
-	int left, received;
+	int left, received = 0;
 	fd_set readfds;
 	fd_set readfds;
 	struct command cmd={0, 0};
 	struct command cmd={0, 0};
 	struct timeval tv= {1, 0};
 	struct timeval tv= {1, 0};