Fix clang-tidy warning

This commit is contained in:
Nick Peng
2019-02-22 01:55:19 +08:00
parent 85b0eed3a2
commit c0c6fde39d
5 changed files with 14 additions and 7 deletions

View File

@@ -1529,7 +1529,7 @@ static int _dns_client_process_tcp(struct dns_server_info *server_info, struct e
{
int len;
int ret = -1;
unsigned char *inpacket_data = server_info->recv_buff.data;
unsigned char *inpacket_data = NULL;
if (event->events & EPOLLIN) {
/* receive from tcp */