dhcpc: Don't use an uninitialized variable

This commit is contained in:
YAMAMOTO Takashi 2020-05-25 23:18:09 +09:00 committed by Xiang Xiao
parent 33c794ad60
commit 1cb82e58ac

View File

@ -424,7 +424,7 @@ FAR void *dhcpc_open(FAR const char *interface, FAR const void *macaddr,
pdhcpc->sockfd = socket(PF_INET, SOCK_DGRAM, 0);
if (pdhcpc->sockfd < 0)
{
ninfo("socket handle %d\n", ret);
ninfo("socket handle %d\n", pdhcpc->sockfd);
free(pdhcpc);
return NULL;
}