Skip to content

Commit

Permalink
prov/sockets: Fix compiler warning
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitry Gladkov <[email protected]>
  • Loading branch information
dmitrygx committed Jun 27, 2018
1 parent 1baf84f commit 8f0c23d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion prov/sockets/src/sock_fabric.c
Original file line number Diff line number Diff line change
Expand Up @@ -735,11 +735,13 @@ static int sock_addr_matches_interface(struct slist *addr_list,

static int sock_node_matches_interface(struct slist *addr_list, const char *node)
{
union ofi_sock_ip addr = { 0 };
union ofi_sock_ip addr;
struct addrinfo *rai = NULL, ai = {
.ai_socktype = SOCK_STREAM,
};

memset(&addr, 0, sizeof(addr));

if (getaddrinfo(node, 0, &ai, &rai)) {
SOCK_LOG_DBG("getaddrinfo failed!\n");
return -FI_EINVAL;
Expand Down

0 comments on commit 8f0c23d

Please sign in to comment.