Browse Source

unixsock(s): init var to avoid compiler warning

Daniel-Constantin Mierla 15 years ago
parent
commit
541e06792d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      modules_s/unixsock/unixsock_server.c

+ 1 - 1
modules_s/unixsock/unixsock_server.c

@@ -191,7 +191,7 @@ static void unix_server_loop(void)
 	int ret;
 	int ret;
 	str cmd, buffer;
 	str cmd, buffer;
 	static char buf[UNIXSOCK_BUF_SIZE];
 	static char buf[UNIXSOCK_BUF_SIZE];
-	struct unixsock_cmd* c;
+	struct unixsock_cmd* c = NULL;
 	
 	
 	while(1) {
 	while(1) {
 		reply_addr_len = sizeof(reply_addr);
 		reply_addr_len = sizeof(reply_addr);